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
|
# define PLAN9PORT_USING_PTHREADS 1
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__)
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
|
# include <osreldate.h>
|
||||||
# if !defined(_POSIX_SOURCE)
|
# if !defined(_POSIX_SOURCE)
|
||||||
# undef _NEEDUSHORT
|
# undef _NEEDUSHORT
|
||||||
# undef _NEEDUINT
|
# undef _NEEDUINT
|
||||||
# endif
|
# endif
|
||||||
# if defined(__FreeBSD5__)
|
# if __FreeBSD_version >= 500000
|
||||||
# define PLAN9PORT_USING_PTHREADS 1
|
# define PLAN9PORT_USING_PTHREADS 1
|
||||||
# endif
|
# endif
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue