]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Prepare NonStop for fixed-size integer types.
authorRandall S. Becker <rsbecker@nexbridge.com>
Mon, 16 May 2022 22:57:45 +0000 (16:57 -0600)
committerPauli <pauli@openssl.org>
Thu, 19 May 2022 03:30:43 +0000 (13:30 +1000)
This commit removes platform defines the interfere with loading and resolution
of platform and memory model variants of integer types and includes the
appropriate files, stdint.h and sys/types.h where the types are defined.

Fixes #17669

Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18325)

Configurations/50-nonstop.conf
include/openssl/e_os2.h

index ed3fe828b318d0a90072573154cf3f3a2fc7b0e5..50c37f3dedee59717839ef85f1d1986dcab6e116 100644 (file)
@@ -58,7 +58,7 @@
     # Itanium + guardian:
     'nonstop-archenv-itanium-guardian' => {
         template         => 1,
-        defines          => ['NO_GETPID', '_TANDEM_ARCH=2'],
+        defines          => ['NO_GETPID'],
         cflags           => '-Wtarget=tns/e -Wsystype=guardian',
         lflags           => '-Weld="-set systype guardian"',
         shared_ldflag    => '-Wshared -Weld="-soname $(@:lib%.so=%)"',
@@ -69,7 +69,7 @@
     # x86 + guardian:
     'nonstop-archenv-x86_64-guardian' => {
         template         => 1,
-        defines          => ['NO_GETPID', '_TANDEM_ARCH=3'],
+        defines          => ['NO_GETPID'],
         cflags           => '-Wtarget=tns/x -Wsystype=guardian',
         lflags           => '-Wxld="-set systype guardian"',
         shared_ldflag    => '-Wshared -Wxld="-soname $(@:lib%.so=%)"',
@@ -89,7 +89,6 @@
     # Itanium + oss:
     'nonstop-archenv-itanium-oss' => {
         template         => 1,
-        defines          => ['_TANDEM_ARCH=2'],
         cflags           => '-Wtarget=tns/e -Wsystype=oss',
         lflags           => '-Weld="-set systype oss"',
         shared_ldflag    => '-Wshared',
@@ -99,7 +98,6 @@
     # x86_64 + oss:
     'nonstop-archenv-x86_64-oss' => {
         template         => 1,
-        defines          => ['_TANDEM_ARCH=3'],
         cflags           => '-Wtarget=tns/x -Wsystype=oss',
         lflags           => '-Wxld="-set systype oss"',
         shared_ldflag    => '-Wshared',
index 67289092717a02685c1fa2b73c03fdc87e946a17..6768cfc856966c16127dd0ed89fe499654730eb7 100644 (file)
@@ -248,6 +248,9 @@ typedef int int32_t;
 typedef unsigned int uint32_t;
 typedef __int64 int64_t;
 typedef unsigned __int64 uint64_t;
+# elif defined(OPENSSL_SYS_TANDEM)
+#  include <stdint.h>
+#  include <sys/types.h>
 # else
 #  include <stdint.h>
 #  undef OPENSSL_NO_STDINT_H