Fixed QNX compilation. QNX 6.5 supports _XOPEN_SOURCE=600 or less.
Signed-off-by: raspopov <raspopov@cherubicsoft.com>
This commit is contained in:
parent
92a1a02430
commit
aed4b945d9
6
config.h
6
config.h
@ -6,10 +6,14 @@
|
|||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
# define __DARWIN_C_SOURCE
|
# define __DARWIN_C_SOURCE
|
||||||
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__SYMBIAN32__) || defined(__QNX__)
|
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__SYMBIAN32__)
|
||||||
# define _XOPEN_SOURCE 700
|
# define _XOPEN_SOURCE 700
|
||||||
# define __BSD_VISIBLE 1
|
# define __BSD_VISIBLE 1
|
||||||
# define HAVE_NETINET_IN_H
|
# define HAVE_NETINET_IN_H
|
||||||
|
#elif defined(__QNX__)
|
||||||
|
# define _XOPEN_SOURCE 600
|
||||||
|
# define __BSD_VISIBLE 1
|
||||||
|
# define HAVE_NETINET_IN_H
|
||||||
#else
|
#else
|
||||||
# define _XOPEN_SOURCE 700
|
# define _XOPEN_SOURCE 700
|
||||||
# define _DEFAULT_SOURCE 1
|
# define _DEFAULT_SOURCE 1
|
||||||
|
Loading…
Reference in New Issue
Block a user