Update from stable branch.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 13 May 2009 11:32:46 +0000 (11:32 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 13 May 2009 11:32:46 +0000 (11:32 +0000)
apps/apps.c
crypto/ui/ui_openssl.c

index b04bfbd3c3460ce6cad070ad47f59aa593860974..b992a04ba6d7cac6b666c91e0255b5b6bbb32a96 100644 (file)
  *
  */
 
+#ifndef _POSIX_C_SOURCE
 #define _POSIX_C_SOURCE 2      /* On VMS, you need to define this to get
                                   the declaration of fileno().  The value
                                   2 is to make sure no function defined
                                   in POSIX-2 is left undefined. */
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 1c2dcc406e66237b21f3ce279bc4eea64c51b42c..99304394c3d0413f53c1df8c1d8fc278cf232b8f 100644 (file)
  * 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
+#ifndef _POSIX_C_SOURCE
+#define _POSIX_C_SOURCE 2
+#endif
 #include <signal.h>
 #include <stdio.h>
 #include <string.h>