#undef _POSIX_C_SOURCE in ui_openssl.c ruined IRIX builds. Comment on why
authorAndy Polyakov <appro@openssl.org>
Tue, 27 Jan 2004 22:06:48 +0000 (22:06 +0000)
committerAndy Polyakov <appro@openssl.org>
Tue, 27 Jan 2004 22:06:48 +0000 (22:06 +0000)
_POSIX_C_SOURCE needed in first place.

crypto/ui/ui_openssl.c

index fad17024a03e09c84800ddffc8bdb28a02f593dd..7c80f5feb21c8bce41ff0a262760be7903705ef4 100644 (file)
 
 #include <openssl/e_os2.h>
 
+/* need for #define _POSIX_C_SOURCE arises whenever you pass -ansi to gcc
+ * [maybe others?], because it masks interfaces not discussed in standard,
+ * sigaction and fileno included. -pedantic would be more appropriate for
+ * the intended purposes, but we can't prevent users from adding -ansi.
+ */
 #define _POSIX_C_SOURCE 1
 #include <signal.h>
 #include <stdio.h>
-#undef _POSIX_C_SOURCE
 #include <string.h>
 #include <errno.h>