Use osreldate.h to determine OS version under FreeBSD.

This commit is contained in:
wkj 2004-12-29 01:32:42 +00:00
parent 89a4515039
commit 7ee1ac9689

View file

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