[Mplayer-cvslog] CVS: main/loader setup_FS.c,1.4,1.5 win32.c,1.17,1.18
Jürgen Keil
jkeil at mplayer.dev.hu
Fri Aug 24 18:12:31 CEST 2001
Update of /cvsroot/mplayer/main/loader
In directory mplayer:/var/tmp.root/cvs-serv28211/loader
Modified Files:
setup_FS.c win32.c
Log Message:
Add a few ifdefs, so that the code compiles on old solaris releases (2.6 and 7)
Index: setup_FS.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/setup_FS.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- setup_FS.c 12 Jul 2001 15:27:47 -0000 1.4
+++ setup_FS.c 24 Aug 2001 16:12:28 -0000 1.5
@@ -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__ */
Index: win32.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/win32.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- win32.c 16 Aug 2001 00:43:28 -0000 1.17
+++ win32.c 24 Aug 2001 16:12:28 -0000 1.18
@@ -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
*/
More information about the MPlayer-cvslog
mailing list