tUse osreldate.h to determine OS version under FreeBSD. - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 7ee1ac96893a000763b937ed03a51bba61acedbe
parent 89a4515039d725e72db035504ec57cd388807d96
Author: wkj 
Date:   Wed, 29 Dec 2004 01:32:42 +0000

Use osreldate.h to determine OS version under FreeBSD.

Diffstat:
  M include/u.h                         |       3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/include/u.h b/include/u.h
t@@ -54,11 +54,12 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
 #        define PLAN9PORT_USING_PTHREADS 1
 #elif defined(__FreeBSD__)
 #        include 
+#        include 
 #        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__)