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 a92c872..889061e 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>