diff options
-rw-r--r-- | include/u.h | 3 |
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__) |