mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
Use osreldate.h to determine OS version under FreeBSD.
This commit is contained in:
parent
89a4515039
commit
7ee1ac9689
1 changed files with 2 additions and 1 deletions
|
@ -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__)
|
||||
|
|
Loading…
Reference in a new issue