summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--sysinfo.c12
2 files changed, 0 insertions, 16 deletions
diff --git a/configure.ac b/configure.ac
index f66fb002f..fbd20d21c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -314,10 +314,6 @@ AC_CHECK_MEMBERS([struct sigevent._sigev_un._pad,
siginfo_t.si_timerid,
siginfo_t.si_overrun],,, [#include <signal.h>])
-AC_CHECK_MEMBERS([struct sysinfo.totalhigh,
- struct sysinfo.freehigh,
- struct sysinfo.mem_unit],,, [#include <sys/sysinfo.h>])
-
AC_CHECK_TYPES([struct flock64],,, [#include <fcntl.h>])
AC_CHECK_HEADERS([libaio.h], [
diff --git a/sysinfo.c b/sysinfo.c
index 0e724dad8..4d9e30c67 100644
--- a/sysinfo.c
+++ b/sysinfo.c
@@ -18,15 +18,9 @@ SYS_FUNC(sysinfo)
", totalswap=%llu"
", freeswap=%llu"
", procs=%u"
-#ifdef HAVE_STRUCT_SYSINFO_TOTALHIGH
", totalhigh=%llu"
-#endif
-#ifdef HAVE_STRUCT_SYSINFO_FREEHIGH
", freehigh=%llu"
-#endif
-#ifdef HAVE_STRUCT_SYSINFO_MEM_UNIT
", mem_unit=%u"
-#endif
"}",
(unsigned long long) si.uptime
, (unsigned long long) si.loads[0]
@@ -39,15 +33,9 @@ SYS_FUNC(sysinfo)
, (unsigned long long) si.totalswap
, (unsigned long long) si.freeswap
, (unsigned) si.procs
-#ifdef HAVE_STRUCT_SYSINFO_TOTALHIGH
, (unsigned long long) si.totalhigh
-#endif
-#ifdef HAVE_STRUCT_SYSINFO_FREEHIGH
, (unsigned long long) si.freehigh
-#endif
-#ifdef HAVE_STRUCT_SYSINFO_MEM_UNIT
, si.mem_unit
-#endif
);
}