summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--include/glibtop/global.h10
2 files changed, 5 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index 3ebd2103..5686c5ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -120,10 +120,12 @@ AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_STRUCT_ST_RDEV
-AC_HEADER_TIME
AC_STRUCT_TM
AC_TYPE_UID_T
+dnl Check sys/time.h
+AC_CHECK_HEADERS([sys/time.h])
+
dnl For SunOS
AC_CHECK_TYPE(ssize_t, int)
AC_CHECK_HEADERS(memory.h)
diff --git a/include/glibtop/global.h b/include/glibtop/global.h
index bd29802c..beb26b26 100644
--- a/include/glibtop/global.h
+++ b/include/glibtop/global.h
@@ -28,17 +28,11 @@
#endif /* _IN_LIBGTOP */
-#if TIME_WITH_SYS_TIME
+#if HAVE_SYS_TIME_H
# include <sys/time.h>
-# include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-# include <sys/time.h>
-# else
-# include <time.h>
-# endif
#endif
+#include <time.h>
#include <stdio.h>
#include <stdlib.h>