mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Define __EXT_POSIX2 for QNX
POSIX 1003.2 extension is necessary for getopt interface. Reported here [1] (not mine, I can't test) [1]: https://mail-index.netbsd.org/pkgsrc-users/2017/09/20/msg025601.html Closes: #563 (cherry-pick)
This commit is contained in:
parent
9fe952a0ae
commit
99a3887d66
@ -32,4 +32,9 @@
|
||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||
#cmakedefine _POSIX_SOURCE 1
|
||||
|
||||
/* Enable POSIX.2 extensions on QNX for getopt */
|
||||
#ifdef __QNX__
|
||||
#cmakedefine __EXT_POSIX2 1
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -45,4 +45,11 @@
|
||||
#undef _POSIX_SOURCE
|
||||
#endif
|
||||
|
||||
/* Enable POSIX.2 extensions on QNX for getopt */
|
||||
#ifdef __QNX__
|
||||
# ifndef __EXT_POSIX2
|
||||
# define __EXT_POSIX2
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user