summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Configurations/10-main.conf2
-rw-r--r--crypto/asn1/a_time.c2
-rw-r--r--crypto/conf/conf_lib.c2
-rw-r--r--crypto/conf/conf_sap.c2
4 files changed, 1 insertions, 7 deletions
diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
index c9db9aac28..ac30adc2c9 100644
--- a/Configurations/10-main.conf
+++ b/Configurations/10-main.conf
@@ -2054,7 +2054,7 @@ my %targets = (
? "/WARNINGS=DISABLE=(".join(",",@warnings).")" : (); }),
cflag_incfirst => '/FIRST_INCLUDE=',
lib_defines =>
- add("OPENSSL_USE_NODELETE",
+ add("OPENSSL_USE_NODELETE", "_XOPEN_SOURCE", "_XOPEN_SOURCE_EXTENDED",
sub {
return vms_info()->{def_zlib}
? "LIBZ=\"\"\"".vms_info()->{def_zlib}."\"\"\"" : ();
diff --git a/crypto/asn1/a_time.c b/crypto/asn1/a_time.c
index 49548235ad..96ee63d310 100644
--- a/crypto/asn1/a_time.c
+++ b/crypto/asn1/a_time.c
@@ -14,8 +14,6 @@
* generalTime GeneralizedTime }
*/
-#define _XOPEN_SOURCE /* To get a definition of timezone */
-
#include <stdio.h>
#include <time.h>
#include "crypto/asn1.h"
diff --git a/crypto/conf/conf_lib.c b/crypto/conf/conf_lib.c
index e82a07da57..601f494302 100644
--- a/crypto/conf/conf_lib.c
+++ b/crypto/conf/conf_lib.c
@@ -7,8 +7,6 @@
* https://www.openssl.org/source/license.html
*/
-#define _XOPEN_SOURCE_EXTENDED /* To get a definition of strdup() */
-
#include "internal/e_os.h"
#include <stdio.h>
#include <string.h>
diff --git a/crypto/conf/conf_sap.c b/crypto/conf/conf_sap.c
index 15fd2f3f9d..6b3defe0fc 100644
--- a/crypto/conf/conf_sap.c
+++ b/crypto/conf/conf_sap.c
@@ -7,8 +7,6 @@
* https://www.openssl.org/source/license.html
*/
-#define _XOPEN_SOURCE_EXTENDED /* To get a definition of strdup() */
-
#include <stdio.h>
#include <openssl/crypto.h>
#include "internal/cryptlib.h"