diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-17 13:23:58 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-17 13:23:58 -0800 |
commit | 89429bb36de409b204ef105e8b73126a639ccb03 (patch) | |
tree | 63d9f728d3d556bf3c0f5f9c2e6bf21fcd4e2e22 | |
parent | c7b0ac2c894bbeebc337867388a8b338692550b8 (diff) |
unifdef hpuxmaster
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | AuGetBest.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/AuGetBest.c b/AuGetBest.c index d2a38ee..50eba63 100644 --- a/AuGetBest.c +++ b/AuGetBest.c @@ -32,11 +32,6 @@ in this Software without prior written authorization from The Open Group. #ifdef XTHREADS #include <X11/Xthreads.h> #endif -#ifdef hpux -#define X_INCLUDE_NETDB_H -#define XOS_USE_NO_LOCKING -#include <X11/Xos_r.h> -#endif #ifdef O_CLOEXEC #define FOPEN_CLOEXEC "e" @@ -72,10 +67,6 @@ XauGetBestAuthByAddr ( Xauth *best; int best_type; int type; -#ifdef hpux - char *fully_qual_address; - unsigned short fully_qual_address_length; -#endif auth_name = XauFileName (); if (!auth_name) @@ -86,26 +77,6 @@ XauGetBestAuthByAddr ( if (!auth_file) return NULL; -#ifdef hpux - if (family == FamilyLocal) { -#ifdef XTHREADS_NEEDS_BYNAMEPARAMS - _Xgethostbynameparams hparams; -#endif - struct hostent *hostp; - - /* make sure we try fully-qualified hostname */ - if ((hostp = _XGethostbyname(address,hparams)) != NULL) { - fully_qual_address = hostp->h_name; - fully_qual_address_length = strlen(fully_qual_address); - } - else - { - fully_qual_address = NULL; - fully_qual_address_length = 0; - } - } -#endif /* hpux */ - best = NULL; best_type = types_length; for (;;) { @@ -129,12 +100,6 @@ XauGetBestAuthByAddr ( (entry->family == family && ((address_length == entry->address_length && binaryEqual (entry->address, address, address_length)) -#ifdef hpux - || (family == FamilyLocal && - fully_qual_address_length == entry->address_length && - binaryEqual (entry->address, fully_qual_address, - fully_qual_address_length)) -#endif ))) && (number_length == 0 || entry->number_length == 0 || (number_length == entry->number_length && |