diff options
author | Yang Tse <yangsita@gmail.com> | 2009-12-27 02:31:29 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-12-27 02:31:29 +0000 |
commit | 1f7d9f4f7b71d70fcd01bafab29f02e2345b11d1 (patch) | |
tree | 4ccc884521385f24fcf008b24674290732cb94e3 /include | |
parent | b6ac8d62a1f020bd55cde971250bd4e677ce5248 (diff) |
Adjust FreeBSD version check to follow FreeBSD Porter's Handbook
http://www.freebsd.org/doc/en/books/porters-handbook/porting-versions.html
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/curl.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h index 7fc11e340..e765a4d2c 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -47,8 +47,8 @@ #include <stdio.h> #include <limits.h> -#if defined(__FreeBSD__) -/* Needed to check FreeBSD version */ +#if defined(__FreeBSD__) && (__FreeBSD__ >= 2) +/* Needed for __FreeBSD_version symbol definition */ #include <osreldate.h> #endif @@ -71,7 +71,8 @@ require it! */ #if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \ defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \ - defined(ANDROID) || (defined(__FreeBSD__) && __FreeBSD_version < 800000) + defined(ANDROID) || \ + (defined(__FreeBSD_version) && (__FreeBSD_version < 800000)) #include <sys/select.h> #endif |