Commit 184c5d77 authored by Mike Gabriel's avatar Mike Gabriel

drop platform support: unifdef hpux and __hppa__.

Fixes ArcticaProject/nx-libs#273.
parent ace255ed
...@@ -184,12 +184,6 @@ ...@@ -184,12 +184,6 @@
# undef __vax__ # undef __vax__
# define VaxArchitecture # define VaxArchitecture
# endif # endif
# ifdef __hppa__
# ifndef HPArchitecture
# define HPArchitecture
# endif
# undef __hppa__
# endif /* __hppa__ */
#endif /* OpenBSD */ #endif /* OpenBSD */
/* Systems based on kernel of OpenBSD */ /* Systems based on kernel of OpenBSD */
...@@ -374,13 +368,6 @@ ...@@ -374,13 +368,6 @@
# define SunArchitecture # define SunArchitecture
#endif /* sun */ #endif /* sun */
#ifdef hpux
# define MacroIncludeFile <hp.cf>
# define MacroFile hp.cf
# undef hpux
# define HPArchitecture
#endif /* hpux */
#ifdef __SCO__ #ifdef __SCO__
# define MacroIncludeFile <sco5.cf> # define MacroIncludeFile <sco5.cf>
# define MacroFile sco5.cf # define MacroFile sco5.cf
...@@ -947,12 +934,6 @@ XCOMM Keep cpp from replacing path elements containing i486/i586/i686 ...@@ -947,12 +934,6 @@ XCOMM Keep cpp from replacing path elements containing i486/i586/i686
# undef MIPSEL # undef MIPSEL
# undef _MIPSEL # undef _MIPSEL
# endif # endif
# ifdef __hppa__
# ifndef HPArchitecture
# define HPArchitecture
# endif
# undef __hppa__
# endif /* __hppa__ */
# ifdef __sh__ # ifdef __sh__
# ifndef SuperHArchitecture # ifndef SuperHArchitecture
# define SuperHArchitecture # define SuperHArchitecture
......
...@@ -515,8 +515,6 @@ XCOMM the platform-specific parameters - edit site.def to change ...@@ -515,8 +515,6 @@ XCOMM the platform-specific parameters - edit site.def to change
#define ByteOrder X_BIG_ENDIAN #define ByteOrder X_BIG_ENDIAN
#elif defined(PpcArchitecture) || defined(Ppc64Architecture) #elif defined(PpcArchitecture) || defined(Ppc64Architecture)
#define ByteOrder X_BIG_ENDIAN #define ByteOrder X_BIG_ENDIAN
#elif defined(HPArchitecture)
#define ByteOrder X_BIG_ENDIAN
#elif defined(SuperHArchitecture) #elif defined(SuperHArchitecture)
#define ByteOrder X_LITTLE_ENDIAN #define ByteOrder X_LITTLE_ENDIAN
#elif defined(SuperHebArchitecture) #elif defined(SuperHebArchitecture)
......
...@@ -535,13 +535,6 @@ XCOMM binutils: (LinuxBinUtilsMajorVersion) ...@@ -535,13 +535,6 @@ XCOMM binutils: (LinuxBinUtilsMajorVersion)
# define LdCmd CcCmd -nostdlib -Wl,"-m alpha" # define LdCmd CcCmd -nostdlib -Wl,"-m alpha"
# define AsmDefines -DUSE_GAS -U__ELF__ # define AsmDefines -DUSE_GAS -U__ELF__
# endif /* AlphaArchitecture */ # endif /* AlphaArchitecture */
# ifdef HPArchitecture
# define CcCmd gcc
# define CplusplusCmd g++
# define AsCmd CcCmd -c -x assembler
# define LdCmd CcCmd -nostdlib
# define AsmDefines -DUSE_GAS -U__ELF__
# endif /* HPArchitecture */
# ifdef i386Architecture # ifdef i386Architecture
# define CcCmd gcc -b i486-linuxaout # define CcCmd gcc -b i486-linuxaout
# define CplusplusCmd g++ -b i486-linuxaout # define CplusplusCmd g++ -b i486-linuxaout
...@@ -580,13 +573,6 @@ XCOMM binutils: (LinuxBinUtilsMajorVersion) ...@@ -580,13 +573,6 @@ XCOMM binutils: (LinuxBinUtilsMajorVersion)
# define AsmDefines -D__ELF__ # define AsmDefines -D__ELF__
# define CplusplusCmd c++ -b alpha-linux # define CplusplusCmd c++ -b alpha-linux
# endif /* AlphaArchitecture */ # endif /* AlphaArchitecture */
# ifdef HPArchitecture
# define CcCmd gcc
# define CplusplusCmd g++
# define AsCmd CcCmd -c -x assembler
# define LdCmd CcCmd -nostdlib
# define AsmDefines -D__ELF__
# endif /* HPArchitecture */
# ifdef i386Architecture # ifdef i386Architecture
# define CcCmd gcc -b i486-linux # define CcCmd gcc -b i486-linux
# define AsCmd CcCmd -c -x assembler # define AsCmd CcCmd -c -x assembler
...@@ -708,13 +694,6 @@ XCOMM binutils: (LinuxBinUtilsMajorVersion) ...@@ -708,13 +694,6 @@ XCOMM binutils: (LinuxBinUtilsMajorVersion)
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines # define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
#endif /* Arm64Achitecture */ #endif /* Arm64Achitecture */
#ifdef HPArchitecture
# define OptimizedCDebugFlags -O2 GccAliasingArgs
# define LinuxMachineDefines -D__hppa__
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
#endif
#ifdef i386Architecture #ifdef i386Architecture
# ifndef OptimizedCDebugFlags # ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags DefaultGcc2i386Opt # define OptimizedCDebugFlags DefaultGcc2i386Opt
......
...@@ -244,7 +244,7 @@ NX_VERSION_CURRENT_STRING = nxVersionString ...@@ -244,7 +244,7 @@ NX_VERSION_CURRENT_STRING = nxVersionString
defined(Sparc64Architecture) || defined(MipsArchitecture) || \ defined(Sparc64Architecture) || defined(MipsArchitecture) || \
defined(AlphaArchitecture) || defined(PpcArchitecture) || \ defined(AlphaArchitecture) || defined(PpcArchitecture) || \
defined(Mc68020Architecture) || defined(Arm32Architecture) || \ defined(Mc68020Architecture) || defined(Arm32Architecture) || \
defined(HPArchitecture) || defined(SuperHArchitecture) defined(SuperHArchitecture)
# ifndef XorgServer # ifndef XorgServer
# define XorgServer YES # define XorgServer YES
# endif # endif
......
...@@ -202,7 +202,6 @@ typedef union { GLfloat f; GLint i; } fi_type; ...@@ -202,7 +202,6 @@ typedef union { GLfloat f; GLint i; } fi_type;
defined(__s390x__) || defined(__powerpc__) || \ defined(__s390x__) || defined(__powerpc__) || \
defined(__amd64__) || \ defined(__amd64__) || \
defined(ia64) || defined(__ia64__) || \ defined(ia64) || defined(__ia64__) || \
defined(__hppa__) || defined(hpux) || \
defined(__mips) || defined(_MIPS_ARCH) || \ defined(__mips) || defined(_MIPS_ARCH) || \
defined(__arm__) || \ defined(__arm__) || \
defined(__sh__) || \ defined(__sh__) || \
......
...@@ -58,7 +58,6 @@ SOFTWARE. ...@@ -58,7 +58,6 @@ SOFTWARE.
defined(__ia64__) || defined(ia64) || \ defined(__ia64__) || defined(ia64) || \
defined(__sparc64__) || \ defined(__sparc64__) || \
defined(__s390x__) || \ defined(__s390x__) || \
(defined(__hppa__) && defined(__LP64__)) || \
defined(__amd64__) || defined(amd64) || \ defined(__amd64__) || defined(amd64) || \
defined(__powerpc64__) || \ defined(__powerpc64__) || \
(defined(sgi) && (_MIPS_SZLONG == 64)) (defined(sgi) && (_MIPS_SZLONG == 64))
......
...@@ -927,8 +927,8 @@ typedef struct { ...@@ -927,8 +927,8 @@ typedef struct {
(_Xos_processUnlock), \ (_Xos_processUnlock), \
(p).result ) (p).result )
#elif !defined(_POSIX_THREAD_SAFE_FUNCTIONS) && (defined(__osf__) || defined(hpV4)) #elif !defined(_POSIX_THREAD_SAFE_FUNCTIONS) && (defined(__osf__)
/* Returns (int)0 on success. OSF/1 v3.2, HP/UX 10 /* Returns (int)0 on success. OSF/1 v3.2
* *
* extern int asctime_r(const struct tm *timeptr, char *buffer, int buflen); * extern int asctime_r(const struct tm *timeptr, char *buffer, int buflen);
* extern int ctime_r(const time_t *timer, char *buffer, int buflen); * extern int ctime_r(const time_t *timer, char *buffer, int buflen);
......
...@@ -149,27 +149,11 @@ typedef struct fd_set { ...@@ -149,27 +149,11 @@ typedef struct fd_set {
extern int _XSelect(int maxfds, fd_set *readfds, fd_set *writefds, extern int _XSelect(int maxfds, fd_set *readfds, fd_set *writefds,
fd_set *exceptfds, struct timeval *timeout); fd_set *exceptfds, struct timeval *timeout);
#ifndef hpux /* and perhaps old BSD ??? */ #define Select(n,r,w,e,t) _XSelect(n,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval*)t)
# define Select(n,r,w,e,t) _XSelect(n,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval*)t)
#else
# ifndef _XPG4_EXTENDED /* HPUX 9.x and earlier */
# define Select(n,r,w,e,t) _XSelect(n,(int*)r,(int*)w,(int*)e,(struct timeval*)t)
# else
# define Select(n,r,w,e,t) _XSelect(n,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval*)t)
# endif
#endif
#else /* #ifdef NX_TRANS_SOCKET */ #else /* #ifdef NX_TRANS_SOCKET */
#ifndef hpux /* and perhaps old BSD ??? */ #define Select(n,r,w,e,t) select(n,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval*)t)
# define Select(n,r,w,e,t) select(n,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval*)t)
#else
# ifndef _XPG4_EXTENDED /* HPUX 9.x and earlier */
# define Select(n,r,w,e,t) select(n,(int*)r,(int*)w,(int*)e,(struct timeval*)t)
# else
# define Select(n,r,w,e,t) select(n,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval*)t)
# endif
#endif
#endif /* #ifdef NX_TRANS_SOCKET */ #endif /* #ifdef NX_TRANS_SOCKET */
......
...@@ -33,11 +33,6 @@ in this Software without prior written authorization from The Open Group. ...@@ -33,11 +33,6 @@ in this Software without prior written authorization from The Open Group.
#ifdef XTHREADS #ifdef XTHREADS
#include <nx-X11/Xthreads.h> #include <nx-X11/Xthreads.h>
#endif #endif
#ifdef hpux
#define X_INCLUDE_NETDB_H
#define XOS_USE_NO_LOCKING
#include <nx-X11/Xos_r.h>
#endif
static int static int
binaryEqual (_Xconst char *a, _Xconst char *b, int len) binaryEqual (_Xconst char *a, _Xconst char *b, int len)
...@@ -74,10 +69,6 @@ XauGetBestAuthByAddr ( ...@@ -74,10 +69,6 @@ XauGetBestAuthByAddr (
Xauth *best; Xauth *best;
int best_type; int best_type;
int type; int type;
#ifdef hpux
char *fully_qual_address;
unsigned short fully_qual_address_length;
#endif
auth_name = XauFileName (); auth_name = XauFileName ();
if (!auth_name) if (!auth_name)
...@@ -88,26 +79,6 @@ XauGetBestAuthByAddr ( ...@@ -88,26 +79,6 @@ XauGetBestAuthByAddr (
if (!auth_file) if (!auth_file)
return 0; return 0;
#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 = 0; best = 0;
best_type = types_length; best_type = types_length;
for (;;) { for (;;) {
...@@ -131,12 +102,6 @@ XauGetBestAuthByAddr ( ...@@ -131,12 +102,6 @@ XauGetBestAuthByAddr (
(entry->family == family && (entry->family == family &&
((address_length == entry->address_length && ((address_length == entry->address_length &&
binaryEqual (entry->address, address, (int)address_length)) binaryEqual (entry->address, address, (int)address_length))
#ifdef hpux
|| (family == FamilyLocal &&
fully_qual_address_length == entry->address_length &&
binaryEqual (entry->address, fully_qual_address,
(int) fully_qual_address_length))
#endif
))) && ))) &&
(number_length == 0 || entry->number_length == 0 || (number_length == 0 || entry->number_length == 0 ||
(number_length == entry->number_length && (number_length == entry->number_length &&
......
...@@ -33,22 +33,14 @@ in this Software without prior written authorization from The Open Group. ...@@ -33,22 +33,14 @@ in this Software without prior written authorization from The Open Group.
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#if defined(hpux)
#include <dl.h>
#else
#include <dlfcn.h> #include <dlfcn.h>
#endif
#include "Cr.h" #include "Cr.h"
#ifdef __CYGWIN__ #ifdef __CYGWIN__
#define LIBXCURSOR "cygXcursor-1.dll" #define LIBXCURSOR "cygXcursor-1.dll"
#endif #endif
#if defined(hpux)
typedef shl_t XModuleType;
#else
typedef void *XModuleType; typedef void *XModuleType;
#endif
#ifndef LIBXCURSOR #ifndef LIBXCURSOR
#define LIBXCURSOR "libXcursor.so.1" #define LIBXCURSOR "libXcursor.so.1"
...@@ -64,11 +56,7 @@ open_library (void) ...@@ -64,11 +56,7 @@ open_library (void)
XModuleType module; XModuleType module;
for (;;) for (;;)
{ {
#if defined(hpux)
module = shl_load(library, BIND_DEFERRED, 0L);
#else
module = dlopen(library, RTLD_LAZY); module = dlopen(library, RTLD_LAZY);
#endif
if (module) if (module)
return module; return module;
dot = strrchr (library, '.'); dot = strrchr (library, '.');
...@@ -84,28 +72,9 @@ fetch_symbol (XModuleType module, const char *under_symbol) ...@@ -84,28 +72,9 @@ fetch_symbol (XModuleType module, const char *under_symbol)
{ {
void *result = NULL; void *result = NULL;
const char *symbol = under_symbol + 1; const char *symbol = under_symbol + 1;
#if defined(hpux)
int getsyms_cnt, i;
struct shl_symbol *symbols;
getsyms_cnt = shl_getsymbols(module, TYPE_PROCEDURE,
EXPORT_SYMBOLS, malloc, &symbols);
for(i=0; i<getsyms_cnt; i++) {
if(!strcmp(symbols[i].name, symbol)) {
result = symbols[i].value;
break;
}
}
if(getsyms_cnt > 0) {
free(symbols);
}
#else
result = dlsym (module, symbol); result = dlsym (module, symbol);
if (!result) if (!result)
result = dlsym (module, under_symbol); result = dlsym (module, under_symbol);
#endif
return result; return result;
} }
......
...@@ -99,18 +99,10 @@ _XlcMapOSLocaleName( ...@@ -99,18 +99,10 @@ _XlcMapOSLocaleName(
char *osname, char *osname,
char *siname) char *siname)
{ {
#if defined(hpux) || defined(CSRG_BASED) || defined(sun) || defined(SVR4) || defined(sgi) || defined(__osf__) || defined(AIXV3) || defined(ultrix) || defined(WIN32) || defined(linux)
# ifdef hpux /* FIXME: correct indentation levels after ancient platform clean-up */
# ifndef _LastCategory
/* HPUX 9 and earlier */ #if defined(CSRG_BASED) || defined(sun) || defined(SVR4) || defined(sgi) || defined(__osf__) || defined(AIXV3) || defined(ultrix) || defined(WIN32) || defined(linux)
# define SKIPCOUNT 2
# define STARTCHAR ':'
# define ENDCHAR ';'
# else
/* HPUX 10 */
# define ENDCHAR ' '
# endif
# else
# ifdef ultrix # ifdef ultrix
# define SKIPCOUNT 2 # define SKIPCOUNT 2
# define STARTCHAR '\001' # define STARTCHAR '\001'
...@@ -138,7 +130,6 @@ _XlcMapOSLocaleName( ...@@ -138,7 +130,6 @@ _XlcMapOSLocaleName(
# endif # endif
# endif # endif
# endif # endif
# endif
char *start; char *start;
char *end; char *end;
......
...@@ -63,11 +63,7 @@ Sun Microsystems, Inc. or its licensors is granted. ...@@ -63,11 +63,7 @@ Sun Microsystems, Inc. or its licensors is granted.
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include <config.h> # include <config.h>
#else #else
# if defined(hpux)
# define HAVE_DL_H
# else
# define HAVE_DLFCN_H # define HAVE_DLFCN_H
# endif
#endif #endif
#include <stdio.h> #include <stdio.h>
...@@ -106,11 +102,7 @@ typedef struct { ...@@ -106,11 +102,7 @@ typedef struct {
char *im_unregister; char *im_unregister;
int dl_release; int dl_release;
unsigned int refcount; unsigned int refcount;
#if defined(hpux)
shl_t dl_module;
#else
void *dl_module; void *dl_module;
#endif
} XI18NObjectsListRec, *XI18NObjectsList; } XI18NObjectsListRec, *XI18NObjectsList;
#define OBJECT_INIT_LEN 8 #define OBJECT_INIT_LEN 8
...@@ -156,7 +148,6 @@ strdup_with_underscore(const char *symbol) ...@@ -156,7 +148,6 @@ strdup_with_underscore(const char *symbol)
return result; return result;
} }
#ifndef hpux
static void * static void *
try_both_dlsym (void *handle, char *name) try_both_dlsym (void *handle, char *name)
{ {
...@@ -174,7 +165,6 @@ try_both_dlsym (void *handle, char *name) ...@@ -174,7 +165,6 @@ try_both_dlsym (void *handle, char *name)
} }
return ret; return ret;
} }
#endif
static void static void
resolve_object(char *path, const char *lc_name) resolve_object(char *path, const char *lc_name)
...@@ -301,11 +291,7 @@ open_object( ...@@ -301,11 +291,7 @@ open_object(
path = __lc_path(object->dl_name, lc_dir); path = __lc_path(object->dl_name, lc_dir);
if (!path) if (!path)
return False; return False;
#if defined(hpux)
object->dl_module = shl_load(path, BIND_DEFERRED, 0L);
#else
object->dl_module = dlopen(path, RTLD_LAZY); object->dl_module = dlopen(path, RTLD_LAZY);
#endif
Xfree(path); Xfree(path);
if (!object->dl_module) if (!object->dl_module)
...@@ -322,31 +308,11 @@ fetch_symbol( ...@@ -322,31 +308,11 @@ fetch_symbol(
char *symbol) char *symbol)
{ {
void *result = NULL; void *result = NULL;
#if defined(hpux)
int getsyms_cnt, i;
struct shl_symbol *symbols;
#endif
if (symbol == NULL) if (symbol == NULL)
return NULL; return NULL;
#if defined(hpux)
getsyms_cnt = shl_getsymbols(object->dl_module, TYPE_PROCEDURE,
EXPORT_SYMBOLS, malloc, &symbols);
for(i=0; i<getsyms_cnt; i++) {
if(!strcmp(symbols[i].name, symbol)) {
result = symbols[i].value;
break;
}
}
if(getsyms_cnt > 0) {
free(symbols);
}
#else
result = try_both_dlsym(object->dl_module, symbol); result = try_both_dlsym(object->dl_module, symbol);
#endif
return result; return result;
} }
...@@ -357,11 +323,7 @@ close_object(XI18NObjectsList object) ...@@ -357,11 +323,7 @@ close_object(XI18NObjectsList object)
object->refcount--; object->refcount--;
if (object->refcount == 0) if (object->refcount == 0)
{ {
#if defined(hpux)
shl_unload(object->dl_module);
#else
dlclose(object->dl_module); dlclose(object->dl_module);
#endif
object->dl_module = NULL; object->dl_module = NULL;
} }
} }
...@@ -466,10 +428,6 @@ _XDynamicRegisterIMInstantiateCallback( ...@@ -466,10 +428,6 @@ _XDynamicRegisterIMInstantiateCallback(
Bool ret_flag = False; Bool ret_flag = False;
int count; int count;
XI18NObjectsList objects_list = xi18n_objects_list; XI18NObjectsList objects_list = xi18n_objects_list;
#if defined(hpux)
int getsyms_cnt, i;
struct shl_symbol *symbols;
#endif
lc_name = lcd->core->name; lc_name = lcd->core->name;
...@@ -514,10 +472,6 @@ _XDynamicUnRegisterIMInstantiateCallback( ...@@ -514,10 +472,6 @@ _XDynamicUnRegisterIMInstantiateCallback(
Bool ret_flag = False; Bool ret_flag = False;
int count; int count;
XI18NObjectsList objects_list = xi18n_objects_list; XI18NObjectsList objects_list = xi18n_objects_list;
#if defined(hpux)
int getsyms_cnt, i;
struct shl_symbol *symbols;
#endif
lc_name = lcd->core->name; lc_name = lcd->core->name;
if (_XlcLocaleDirName(lc_dir, BUFSIZE, lc_name) == NULL) return False; if (_XlcLocaleDirName(lc_dir, BUFSIZE, lc_name) == NULL) return False;
...@@ -570,10 +524,6 @@ _XDynamicOpenOM(XLCd lcd, Display *display, XrmDatabase rdb, ...@@ -570,10 +524,6 @@ _XDynamicOpenOM(XLCd lcd, Display *display, XrmDatabase rdb,
char *lc_name; char *lc_name;
dynamicIOpenProcp om_openOM = (dynamicIOpenProcp)NULL; dynamicIOpenProcp om_openOM = (dynamicIOpenProcp)NULL;
XI18NObjectsList objects_list = xi18n_objects_list; XI18NObjectsList objects_list = xi18n_objects_list;
#if defined(hpux)
int getsyms_cnt, i;
struct shl_symbol *symbols;
#endif
lc_name = lcd->core->name; lc_name = lcd->core->name;
......
...@@ -3891,7 +3891,7 @@ _XData32( ...@@ -3891,7 +3891,7 @@ _XData32(
* and so, you may be better off using gethostname (if it exists). * and so, you may be better off using gethostname (if it exists).
*/ */
#if (defined(_POSIX_SOURCE) && !defined(AIXV3) && !defined(__QNX__)) || defined(hpux) || defined(SVR4) #if (defined(_POSIX_SOURCE) && !defined(AIXV3) && !defined(__QNX__)) || defined(SVR4)
#define NEED_UTSNAME #define NEED_UTSNAME
#include <sys/utsname.h> #include <sys/utsname.h>
#else #else
......
...@@ -114,14 +114,6 @@ SOFTWARE. ...@@ -114,14 +114,6 @@ SOFTWARE.
#endif /* __aarch64__ */ #endif /* __aarch64__ */
#if defined (hpux) || defined __hppa__
#define IMAGE_BYTE_ORDER MSBFirst
#define BITMAP_BIT_ORDER MSBFirst
#define GLYPHPADBYTES 4 /* to make fb work */
#endif /* hpux || __hppa__ */
#if defined(__powerpc__) || defined(__ppc__) #if defined(__powerpc__) || defined(__ppc__)
#define IMAGE_BYTE_ORDER MSBFirst #define IMAGE_BYTE_ORDER MSBFirst
......
...@@ -105,7 +105,7 @@ SOFTWARE. ...@@ -105,7 +105,7 @@ SOFTWARE.
#endif #endif
#if defined(hpux) || defined(QNX4) #if defined(QNX4)
# include <sys/utsname.h> # include <sys/utsname.h>
# ifdef HAS_IFREQ # ifdef HAS_IFREQ
# include <net/if.h> # include <net/if.h>
...@@ -127,7 +127,7 @@ SOFTWARE. ...@@ -127,7 +127,7 @@ SOFTWARE.
#else /*!__GNU__*/ #else /*!__GNU__*/
# include <net/if.h> # include <net/if.h>
#endif /*__GNU__ */ #endif /*__GNU__ */
#endif /* hpux */ #endif /* QNX4 */
#ifdef SVR4 #ifdef SVR4
#include <sys/sockio.h> #include <sys/sockio.h>
...@@ -513,7 +513,7 @@ DefineSelf (int fd) ...@@ -513,7 +513,7 @@ DefineSelf (int fd)
#else /* WINTCP */ #else /* WINTCP */
#if !defined(SIOCGIFCONF) || (defined (hpux) && ! defined (HAS_IFREQ)) || defined(QNX4) #if !defined(SIOCGIFCONF) || defined(QNX4)
void void
DefineSelf (int fd) DefineSelf (int fd)
{ {
...@@ -1047,7 +1047,7 @@ DefineSelf (int fd) ...@@ -1047,7 +1047,7 @@ DefineSelf (int fd)
} }
} }
} }
#endif /* hpux && !HAS_IFREQ */ #endif /* SIOCGIFCONF || QNX4 */
#endif /* WINTCP */ #endif /* WINTCP */
#ifdef XDMCP #ifdef XDMCP
......
...@@ -82,11 +82,6 @@ SOFTWARE. ...@@ -82,11 +82,6 @@ SOFTWARE.
#ifndef WIN32 #ifndef WIN32
#include <sys/socket.h> #include <sys/socket.h>
#ifdef hpux
#include <sys/utsname.h>
#include <sys/ioctl.h>
#endif
#if defined(DGUX) #if defined(DGUX)
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/utsname.h> #include <sys/utsname.h>
...@@ -106,7 +101,9 @@ SOFTWARE. ...@@ -106,7 +101,9 @@ SOFTWARE.
#if defined(TCPCONN) #if defined(TCPCONN)
# include <netinet/in.h> # include <netinet/in.h>
# include <arpa/inet.h> # include <arpa/inet.h>
# if !defined(hpux)
/* FIXME: correct indentation levels after ancient platform support clean-up */
# ifdef apollo # ifdef apollo
# ifndef NO_TCP_H # ifndef NO_TCP_H
# include <netinet/tcp.h> # include <netinet/tcp.h>
...@@ -117,7 +114,6 @@ SOFTWARE. ...@@ -117,7 +114,6 @@ SOFTWARE.
# endif # endif
# include <netinet/tcp.h> # include <netinet/tcp.h>
# endif # endif
# endif
# include <arpa/inet.h> # include <arpa/inet.h>
#endif #endif
......
...@@ -117,7 +117,7 @@ SOFTWARE. ...@@ -117,7 +117,7 @@ SOFTWARE.
/* MAXSELECT is the number of fds that select() can handle */ /* MAXSELECT is the number of fds that select() can handle */
#define MAXSELECT (sizeof(fd_set) * NBBY) #define MAXSELECT (sizeof(fd_set) * NBBY)
#if !defined(hpux) && !defined(SVR4) && !defined(SYSV) #if !defined(SVR4) && !defined(SYSV)
#define HAS_GETDTABLESIZE #define HAS_GETDTABLESIZE
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment