| 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(-)
--- |
| 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__) |