mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 22:37:28 +01:00
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
This commit is contained in:
parent
cc3b911d90
commit
ec55c409ee
@ -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__ */
|
||||
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user