Apparently, isascii() is an X/Open function, so to get it properly
authorRichard Levitte <levitte@openssl.org>
Sun, 17 Apr 2005 09:15:33 +0000 (09:15 +0000)
committerRichard Levitte <levitte@openssl.org>
Sun, 17 Apr 2005 09:15:33 +0000 (09:15 +0000)
declared, we need to define _XOPEN_SOURCE before including ctype.h.

Ported from HEAD.

ssl/ssltest.c

index 04badb9bd86f0e8c1505a7ab530383244fa3e2b1..9e39325d940629053c83095fae52cfff328f580b 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>
-#include <ctype.h>
 
 #define USE_SOCKETS
 #include "e_os.h"
 
+#define _XOPEN_SOURCE 1                /* Or isascii won't be declared properly on
+                                  VMS (at least with DECompHP C).  */
+#include <ctype.h>
+
 #include <openssl/bio.h>
 #include <openssl/crypto.h>
 #include <openssl/evp.h>