diff options
author | jkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-24 16:12:28 +0000 |
---|---|---|
committer | jkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-24 16:12:28 +0000 |
commit | ec55c409eecf1fca87569f730f631632aca98f1e (patch) | |
tree | e530320469fa06b8cd3e820d2fb5313f101b8dd3 /loader | |
parent | cc3b911d90946a6d781bdb33915694849c3a4b64 (diff) | |
download | mpv-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.c | 3 | ||||
-rw-r--r-- | loader/win32.c | 2 |
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 */ |