From cdb5129e5c5fd8ad678c5efb1e87c91595d907b4 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 21 Sep 2020 13:14:26 +0200 Subject: Use OPENSSL_SYS_TANDEM instead of OPENSSL_SYSNAME_TANDEM This streamlines with all other config targets, and draws from the 'sys_id' config attribute. Fixes #12858 Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/12933) --- apps/ca.c | 2 +- apps/lib/apps.c | 2 +- crypto/rand/rand_egd.c | 6 +++--- include/internal/sockets.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/ca.c b/apps/ca.c index 6ae52c2277..74113cdd67 100644 --- a/apps/ca.c +++ b/apps/ca.c @@ -26,7 +26,7 @@ #ifndef W_OK # ifdef OPENSSL_SYS_VMS # include -# elif !defined(OPENSSL_SYS_VXWORKS) && !defined(OPENSSL_SYS_WINDOWS) && !defined(OPENSSL_SYSNAME_TANDEM) +# elif !defined(OPENSSL_SYS_VXWORKS) && !defined(OPENSSL_SYS_WINDOWS) && !defined(OPENSSL_SYS_TANDEM) # include # endif #endif diff --git a/apps/lib/apps.c b/apps/lib/apps.c index 9c608e6582..c0c56d9c22 100644 --- a/apps/lib/apps.c +++ b/apps/lib/apps.c @@ -2410,7 +2410,7 @@ int raw_write_stdout(const void *buf, int siz) else return -1; } -#elif defined(OPENSSL_SYSNAME_TANDEM) && defined(OPENSSL_THREADS) && defined(_SPT_MODEL_) +#elif defined(OPENSSL_SYS_TANDEM) && defined(OPENSSL_THREADS) && defined(_SPT_MODEL_) # if defined(__TANDEM) # if defined(OPENSSL_TANDEM_FLOSS) # include diff --git a/crypto/rand/rand_egd.c b/crypto/rand/rand_egd.c index c6dcd87f04..dc1833169c 100644 --- a/crypto/rand/rand_egd.c +++ b/crypto/rand/rand_egd.c @@ -54,7 +54,7 @@ struct sockaddr_un { # include # include -# if defined(OPENSSL_SYSNAME_TANDEM) +# if defined(OPENSSL_SYS_TANDEM) /* * HPNS: * @@ -125,7 +125,7 @@ int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes) return -1; strcpy(addr.sun_path, path); i = offsetof(struct sockaddr_un, sun_path) + strlen(path); -#if defined(OPENSSL_SYSNAME_TANDEM) +#if defined(OPENSSL_SYS_TANDEM) fd = hpns_socket(AF_UNIX, SOCK_STREAM, 0, AF_UNIX_COMPATIBILITY); #else fd = socket(AF_UNIX, SOCK_STREAM, 0); @@ -158,7 +158,7 @@ int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes) /* No error, try again */ break; default: -# if defined(OPENSSL_SYSNAME_TANDEM) +# if defined(OPENSSL_SYS_TANDEM) if (hpns_connect_attempt == 0) { /* try the other kind of AF_UNIX socket */ close(fd); diff --git a/include/internal/sockets.h b/include/internal/sockets.h index e3a6bd459b..e86ae8a09e 100644 --- a/include/internal/sockets.h +++ b/include/internal/sockets.h @@ -145,7 +145,7 @@ struct servent *PASCAL getservbyname(const char *, const char *); # define closesocket(s) close(s) # define readsocket(s,b,n) read((s),(b),(n)) # define writesocket(s,b,n) write((s),(char *)(b),(n)) -# elif defined(OPENSSL_SYSNAME_TANDEM) +# elif defined(OPENSSL_SYS_TANDEM) # if defined(OPENSSL_TANDEM_FLOSS) # include # define readsocket(s,b,n) floss_read((s),(b),(n)) -- cgit v1.2.3