When _XOPEN_SOURCE is defined, make sure it's defined to 500. Required in
authorRichard Levitte <levitte@openssl.org>
Sat, 21 May 2005 17:39:53 +0000 (17:39 +0000)
committerRichard Levitte <levitte@openssl.org>
Sat, 21 May 2005 17:39:53 +0000 (17:39 +0000)
http://www.opengroup.org/onlinepubs/007908799/xsh/compilation.html.

Notified by David Wolfe <dwolfe5272@yahoo.com>

crypto/rand/randfile.c
ssl/kssl.c
ssl/ssltest.c

index dda020fb108f433507ca04cdf491761c5287de31..d69bdf8b8a04031abe2c1d65df5a29347a87f98c 100644 (file)
@@ -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 <errno.h>
 #include <stdio.h>
index 49602bb87893067e5b0751cbd9aa7c75ad72d6f8..b8192cdfc719d937d6baaa3035326be86cb67818 100644 (file)
@@ -68,7 +68,7 @@
 
 #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>
 #undef _XOPEN_SOURCE /* To avoid clashes with anything else... */
 #include <string.h>
index f8e86c3ceb614945085a701ce3781cf8a914a45b..e47af50a4b7ac9c0c05dcffd457c14b497f81de9 100644 (file)
 #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 <ctype.h>