Skip to content

Commit

Permalink
Fixed QNX compilation. QNX 6.5 supports _XOPEN_SOURCE=600 or less.
Browse files Browse the repository at this point in the history
Signed-off-by: raspopov <[email protected]>
  • Loading branch information
raspopov authored and ralight committed Nov 2, 2020
1 parent 92a1a02 commit aed4b94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@

#ifdef __APPLE__
# 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 __BSD_VISIBLE 1
# define HAVE_NETINET_IN_H
#elif defined(__QNX__)
# define _XOPEN_SOURCE 600
# define __BSD_VISIBLE 1
# define HAVE_NETINET_IN_H
#else
# define _XOPEN_SOURCE 700
# define _DEFAULT_SOURCE 1
Expand Down

0 comments on commit aed4b94

Please sign in to comment.