From: Marian Durkovic Date: Thu, 16 Nov 2006 13:41:17 +0000 (+0000) Subject: Fix detection of FreeBSD version (the previous one doesn't seem to work) X-Git-Tag: 0.9.0-test0~9424 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ce6d823658ee66cbe9fad22517009da89b55664b;p=vlc Fix detection of FreeBSD version (the previous one doesn't seem to work) --- diff --git a/include/vlc_common.h b/include/vlc_common.h index 9a22246699..85e6500966 100644 --- a/include/vlc_common.h +++ b/include/vlc_common.h @@ -871,7 +871,7 @@ static inline void _SetQWBE( uint8_t *p, uint64_t i_qw ) #endif #if defined(SYS_BEOS) \ - || (defined (__FreeBSD__) && (__FreeBSD_version__ < 500000)) + || (defined (__FreeBSD__) && (__FreeBSD__ < 5)) typedef struct { long long quot; /* Quotient. */ long long rem; /* Remainder. */ diff --git a/src/extras/libc.c b/src/extras/libc.c index 53d85233fe..d5f118862c 100644 --- a/src/extras/libc.c +++ b/src/extras/libc.c @@ -348,7 +348,7 @@ int64_t vlc_atoll( const char *nptr ) * lldiv: returns quotient and remainder *****************************************************************************/ #if defined(SYS_BEOS) \ - || (defined (__FreeBSD__) && (__FreeBSD_version__ < 500000)) + || (defined (__FreeBSD__) && (__FreeBSD__ < 5)) lldiv_t vlc_lldiv( long long numer, long long denom ) { lldiv_t d;