aboutsummaryrefslogtreecommitdiff
path: root/include/u.h
diff options
context:
space:
mode:
authorwkj <devnull@localhost>2004-12-29 01:32:42 +0000
committerwkj <devnull@localhost>2004-12-29 01:32:42 +0000
commit7ee1ac96893a000763b937ed03a51bba61acedbe (patch)
treee975e9811ea14044d6d28a55161f3b731e9d3c23 /include/u.h
parent89a4515039d725e72db035504ec57cd388807d96 (diff)
downloadplan9port-7ee1ac96893a000763b937ed03a51bba61acedbe.tar.gz
plan9port-7ee1ac96893a000763b937ed03a51bba61acedbe.tar.bz2
plan9port-7ee1ac96893a000763b937ed03a51bba61acedbe.zip
Use osreldate.h to determine OS version under FreeBSD.
Diffstat (limited to 'include/u.h')
-rw-r--r--include/u.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/u.h b/include/u.h
index 595f91d5..ba936960 100644
--- a/include/u.h
+++ b/include/u.h
@@ -54,11 +54,12 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
# define PLAN9PORT_USING_PTHREADS 1
#elif defined(__FreeBSD__)
# include <sys/types.h>
+# include <osreldate.h>
# if !defined(_POSIX_SOURCE)
# undef _NEEDUSHORT
# undef _NEEDUINT
# endif
-# if defined(__FreeBSD5__)
+# if __FreeBSD_version >= 500000
# define PLAN9PORT_USING_PTHREADS 1
# endif
#elif defined(__APPLE__)