# HG changeset patch # User jkeil # Date 998669548 0 # Node ID 73c8f54305b10acdc80e27b03d73266fe6baab7b # Parent 9305c0d5216bce6f7dd0eea2cb5a2b6b9ad6ddd2 Add a few ifdefs, so that the code compiles on old solaris releases (2.6 and 7) diff -r 9305c0d5216b -r 73c8f54305b1 loader/setup_FS.c --- a/loader/setup_FS.c Fri Aug 24 14:49:05 2001 +0000 +++ b/loader/setup_FS.c Fri Aug 24 16:12:28 2001 +0000 @@ -21,6 +21,9 @@ #include /* solaris x86: add missing prototype for sysi86() */ extern int sysi86(int, void*); +#ifndef NUMSYSLDTS /* SunOS 2.5.1 does not define NUMSYSLDTS */ +#define NUMSYSLDTS 6 /* Let's hope the SunOS 5.8 value is OK */ +#endif #define TEB_SEL_IDX NUMSYSLDTS #endif /* __svr4__ */ diff -r 9305c0d5216b -r 73c8f54305b1 loader/win32.c --- a/loader/win32.c Fri Aug 24 14:49:05 2001 +0000 +++ b/loader/win32.c Fri Aug 24 16:12:28 2001 +0000 @@ -1344,7 +1344,7 @@ static double solaris_kstat_freq() { -#if HAVE_LIBKSTAT +#if defined(HAVE_LIBKSTAT) && defined(KSTAT_DATA_INT32) /* * try to extract the CPU speed from the solaris kernel's kstat data */