From 48a3f2818eeee1a8844a5242920e54809839025f Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sat, 21 May 2005 17:39:48 +0000 Subject: [PATCH] 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 --- crypto/rand/randfile.c | 2 +- ssl/kssl.c | 2 +- ssl/ssltest.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index c7fba496a8..7183fa32e4 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -57,7 +57,7 @@ */ /* We need to define this to get macros like S_IFBLK and S_IFCHR */ -#define _XOPEN_SOURCE 1 +#define _XOPEN_SOURCE 500 #include #include diff --git a/ssl/kssl.c b/ssl/kssl.c index 3afa95f3fa..400631661e 100644 --- a/ssl/kssl.c +++ b/ssl/kssl.c @@ -68,7 +68,7 @@ #include -#define _XOPEN_SOURCE /* glibc2 needs this to declare strptime() */ +#define _XOPEN_SOURCE 500 /* glibc2 needs this to declare strptime() */ #include #undef _XOPEN_SOURCE /* To avoid clashes with anything else... */ #include diff --git a/ssl/ssltest.c b/ssl/ssltest.c index e129028c9d..a246a76b91 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -123,7 +123,7 @@ #define USE_SOCKETS #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). */ #include -- 2.25.1