aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2005-11-27 15:32:57 +0000
committerRichard Levitte <levitte@openssl.org>2005-11-27 15:32:57 +0000
commita53cb070e34d645ccc1b63c6c2e82658ca7cda37 (patch)
tree54246e488e114ba34fb3499b068d4e94dde32f0f
parent452ae49db5444f61fd643507fe71e4ac41ecfb1c (diff)
downloadopenssl-a53cb070e34d645ccc1b63c6c2e82658ca7cda37.tar.gz
When using POSIXly functions, we need to define _POSIX_C_SOURCE, at
least when the source is compiled with ANSI settings.
-rw-r--r--apps/apps.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/apps.c b/apps/apps.c
index fc15a74266..be710a6adb 100644
--- a/apps/apps.c
+++ b/apps/apps.c
@@ -109,6 +109,10 @@
*
*/
+#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. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>