summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-24 16:12:28 +0000
committerjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-24 16:12:28 +0000
commitec55c409eecf1fca87569f730f631632aca98f1e (patch)
treee530320469fa06b8cd3e820d2fb5313f101b8dd3 /loader
parentcc3b911d90946a6d781bdb33915694849c3a4b64 (diff)
downloadmpv-ec55c409eecf1fca87569f730f631632aca98f1e.tar.bz2
mpv-ec55c409eecf1fca87569f730f631632aca98f1e.tar.xz
Add a few ifdefs, so that the code compiles on old solaris releases (2.6 and 7)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1680 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader')
-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
*/