mirror of
https://git.zap.org.au/git/trader.git
synced 2024-09-01 17:14:15 -04:00
Force redefinition of _XOPEN_SOURCE if required
Newer versions of libncurses/libncursesw "#define _XOPEN_SOURCE 600" in their pkg-config file. This change forces _XOPEN_SOURCE to be redefined to 700 in that case.
This commit is contained in:
parent
f45986e88d
commit
a47e8528dc
@ -43,7 +43,11 @@
|
||||
* System header files *
|
||||
************************************************************************/
|
||||
|
||||
#define _XOPEN_SOURCE 700 // Use SUSv4 where possible
|
||||
#if ! defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 700
|
||||
# undef _XOPEN_SOURCE
|
||||
# define _XOPEN_SOURCE 700 // Use SUSv4 where possible
|
||||
#endif
|
||||
|
||||
#define _GNU_SOURCE 1 // Use GNU extensions as well
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user