summaryrefslogtreecommitdiffstats
path: root/crypto/ui
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-05-13 11:32:24 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-05-13 11:32:24 +0000
commit756d2074b8cda816f9dc8fb72b35a0ff16de18ba (patch)
tree76c6f4136e485513f81295d63d88d34037d0ed0d /crypto/ui
parentc65db618bb22edf4c85c5169949fb29ffa440e5e (diff)
PR: 1924
Submitted by: "Green, Paul" <Paul.Green@stratus.com> Approved by: steve@openssl.org Fix _POSIX_C_SOURCE usage.
Diffstat (limited to 'crypto/ui')
-rw-r--r--crypto/ui/ui_openssl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/ui/ui_openssl.c b/crypto/ui/ui_openssl.c
index 1c2dcc406e..99304394c3 100644
--- a/crypto/ui/ui_openssl.c
+++ b/crypto/ui/ui_openssl.c
@@ -122,7 +122,9 @@
* 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>