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:48 +0000 (17:39 +0000)
committerRichard Levitte <levitte@openssl.org>
Sat, 21 May 2005 17:39:48 +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 c7fba496a83515912780f0fbaa44ac9e8e784b94..7183fa32e438ed6f43dec78e2fdecac7f243411f 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 3afa95f3fad7f2a194afe03e4cd1ef0326f2306c..400631661e0ab72fb10b462140d6df7f69c3e2f6 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 e129028c9d172a07d747d1a24d6dd55c2777018e..a246a76b917341e97ed7107ca8f397053730ebd1 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>