If I define _XOPEN_SOURCE before including *any* system header file,
authorRichard Levitte <levitte@openssl.org>
Mon, 9 Jul 2001 21:51:03 +0000 (21:51 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 9 Jul 2001 21:51:03 +0000 (21:51 +0000)
things will work much more smoothly.

ssl/kssl.c

index a92c87273dd076f09ff5db5bf03e61d9ebfa07f8..889061e3be65c5c9f6f6858ee13d890b2557888d 100644 (file)
@@ -68,9 +68,9 @@
 
 #include <openssl/opensslconf.h>
 #ifndef OPENSSL_NO_KRB5
-#include <string.h>
 #define _XOPEN_SOURCE /* glibc2 needs this to declare strptime() */
 #include <time.h>
+#include <string.h>
 
 #include <openssl/ssl.h>
 #include <openssl/evp.h>