summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--loader/setup_FS.c3
-rw-r--r--loader/win32.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/loader/setup_FS.c b/loader/setup_FS.c
index 8bab360ceb..6d5cc892dd 100644
--- a/loader/setup_FS.c
+++ b/loader/setup_FS.c
@@ -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__ */
diff --git a/loader/win32.c b/loader/win32.c
index 4941dd6a8f..ca6549f554 100644
--- a/loader/win32.c
+++ b/loader/win32.c
@@ -1344,7 +1344,7 @@ static double linux_cpuinfo_freq()
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
*/