Discontinue HPUX support
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
#if !defined ( __STDC__) && !defined (hpux)
|
||||
#if !defined ( __STDC__)
|
||||
#define debug(s, x) s << "x" << " = " << (x) << "\n"
|
||||
#else
|
||||
#define debug(s, x) s << #x << " = " << (x) << "\n"
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if !defined(hpux) && !defined(__linux__) && !defined(CSRG_BASED) && !defined(sun)
|
||||
#if !defined(__linux__) && !defined(CSRG_BASED) && !defined(sun)
|
||||
#include <sysent.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -741,7 +741,7 @@ Boolean cc_is_digit(istream& in)
|
||||
|
||||
unsigned long disk_space(const char* path)
|
||||
{
|
||||
#if defined (hpux) || defined (SVR4) || defined(CSRG_BASED)
|
||||
#if defined (SVR4) || defined(CSRG_BASED)
|
||||
struct statvfs statfs_buf;
|
||||
#else
|
||||
struct statfs statfs_buf;
|
||||
@@ -749,7 +749,7 @@ unsigned long disk_space(const char* path)
|
||||
|
||||
long free_bytes;
|
||||
|
||||
#if defined (hpux) || defined (SVR4) || defined(CSRG_BASED)
|
||||
#if defined (SVR4) || defined(CSRG_BASED)
|
||||
if ( statvfs(path, &statfs_buf) == 0 ) {
|
||||
free_bytes = statfs_buf.f_bavail * statfs_buf.f_frsize ;
|
||||
#else
|
||||
|
||||
@@ -55,8 +55,7 @@
|
||||
#if !defined(__linux__) && !defined(CSRG_BASED) && !defined(sun)
|
||||
#include <libc.h>
|
||||
#endif
|
||||
#if defined(hpux) || defined(sgi) || \
|
||||
defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#include <sysent.h>
|
||||
|
||||
Reference in New Issue
Block a user