Skip to content

Commit

Permalink
VMS: Move defining _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED to config…
Browse files Browse the repository at this point in the history
… target

For all other platforms that need these macros defined, that's how it's
done, so we have VMS follow suit.
  • Loading branch information
levitte committed Apr 10, 2024
1 parent 3f66fb4 commit f0c49e5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion Configurations/10-main.conf
Expand Up @@ -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}."\"\"\"" : ();
Expand Down
2 changes: 0 additions & 2 deletions crypto/asn1/a_time.c
Expand Up @@ -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"
Expand Down
2 changes: 0 additions & 2 deletions crypto/conf/conf_lib.c
Expand Up @@ -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>
Expand Down
2 changes: 0 additions & 2 deletions crypto/conf/conf_sap.c
Expand Up @@ -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"
Expand Down

0 comments on commit f0c49e5

Please sign in to comment.