Discontinue HPUX support

This commit is contained in:
Chase
2022-07-22 21:42:06 -05:00
committed by Jon Trulson
parent bd83b53d56
commit edf4319548
235 changed files with 198 additions and 6290 deletions

View File

@@ -97,22 +97,7 @@ static unsigned int mask[] =
(bits & (1L << (sizeof(BITS) * 8)-1)) ? putchar('1') : putchar('0'); } \
putchar ('\n'); }
#if defined(hpux)
#include <sys/utsname.h>
static unsigned int
gethostid()
{
struct utsname u;
int i;
i=uname(&u);
if (i==-1)
abort();
if (u.idnumber[0])
return atoi(u.idnumber);
abort();
}
#elif defined(SVR4) && !defined(sun)
#if defined(SVR4) && !defined(sun)
static unsigned int
gethostid()
{

View File

@@ -29,7 +29,7 @@
extern "C" {
#endif
#if defined( __STDC__ ) || defined( _HPUX_SOURCE )
#if defined( __STDC__ )
const char *unique_id(void);
#else
char *unique_id();