When _XOPEN_SOURCE is defined, make sure it's defined to 500. Required in
http://www.opengroup.org/onlinepubs/007908799/xsh/compilation.html. Notified by David Wolfe <dwolfe5272@yahoo.com>
This commit is contained in:
parent
e4c9b85e65
commit
fe8bf9560d
@ -57,7 +57,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* We need to define this to get macros like S_IFBLK and S_IFCHR */
|
/* We need to define this to get macros like S_IFBLK and S_IFCHR */
|
||||||
#define _XOPEN_SOURCE 1
|
#define _XOPEN_SOURCE 500
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
|
|
||||||
#include <openssl/opensslconf.h>
|
#include <openssl/opensslconf.h>
|
||||||
|
|
||||||
#define _XOPEN_SOURCE /* glibc2 needs this to declare strptime() */
|
#define _XOPEN_SOURCE 500 /* glibc2 needs this to declare strptime() */
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#undef _XOPEN_SOURCE /* To avoid clashes with anything else... */
|
#undef _XOPEN_SOURCE /* To avoid clashes with anything else... */
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -128,7 +128,7 @@
|
|||||||
#define USE_SOCKETS
|
#define USE_SOCKETS
|
||||||
#include "e_os.h"
|
#include "e_os.h"
|
||||||
|
|
||||||
#define _XOPEN_SOURCE 1 /* Or isascii won't be declared properly on
|
#define _XOPEN_SOURCE 500 /* Or isascii won't be declared properly on
|
||||||
VMS (at least with DECompHP C). */
|
VMS (at least with DECompHP C). */
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user