changeset 1679:73c8f54305b1

Add a few ifdefs, so that the code compiles on old solaris releases (2.6 and 7)
author jkeil
date Fri, 24 Aug 2001 16:12:28 +0000
parents 9305c0d5216b
children f6d2a4bc9bb5
files loader/setup_FS.c loader/win32.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 <sys/sysi86.h>
 /* 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__ */
 
--- 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
      */