PR: 2717
authorDr. Stephen Henson <steve@openssl.org>
Sat, 11 Feb 2012 23:41:19 +0000 (23:41 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 11 Feb 2012 23:41:19 +0000 (23:41 +0000)
Submitted by: Tim Rice <tim@multitalents.net>

Make compilation work on OpenServer 5.0.7

apps/apps.c
crypto/ui/ui_openssl.c

index 9eff4efb50b6ac97e6b03cdd3b26aa9bdce73381..25e501b594bb794b5a541b9d43ea01f2bbb7898c 100644 (file)
  *
  */
 
-#ifndef _POSIX_C_SOURCE
+#if !defined(_POSIX_C_SOURCE) && defined(OPENSSL_SYS_VMS)
 #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
index fd9c4a8169877e303bcd8bca1481de5fa3be4990..a38c7581e6a0ca10376d05fc9994f4c74a41128a 100644 (file)
 #include <sys/types.h>
 #endif
 
-#if !defined(OPENSSL_SYSNAME_VXWORKS)
+#if !defined(_POSIX_C_SOURCE) && defined(OPENSSL_SYS_VMS)
 #ifndef _POSIX_C_SOURCE
 #define _POSIX_C_SOURCE 2
 #endif
-#endif /* !OPENSSL_SYSNAME_VXWORKS  */
+#endif
 #include <signal.h>
 #include <stdio.h>
 #include <string.h>