Commit ce6d8236 authored by Marian Durkovic's avatar Marian Durkovic

Fix detection of FreeBSD version (the previous one doesn't seem to work)

parent 1cbc005b
...@@ -871,7 +871,7 @@ static inline void _SetQWBE( uint8_t *p, uint64_t i_qw ) ...@@ -871,7 +871,7 @@ static inline void _SetQWBE( uint8_t *p, uint64_t i_qw )
#endif #endif
#if defined(SYS_BEOS) \ #if defined(SYS_BEOS) \
|| (defined (__FreeBSD__) && (__FreeBSD_version__ < 500000)) || (defined (__FreeBSD__) && (__FreeBSD__ < 5))
typedef struct { typedef struct {
long long quot; /* Quotient. */ long long quot; /* Quotient. */
long long rem; /* Remainder. */ long long rem; /* Remainder. */
......
...@@ -348,7 +348,7 @@ int64_t vlc_atoll( const char *nptr ) ...@@ -348,7 +348,7 @@ int64_t vlc_atoll( const char *nptr )
* lldiv: returns quotient and remainder * lldiv: returns quotient and remainder
*****************************************************************************/ *****************************************************************************/
#if defined(SYS_BEOS) \ #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 vlc_lldiv( long long numer, long long denom )
{ {
lldiv_t d; lldiv_t d;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment