[libgtop] Remove obsolete macro AC_HEADER_TIME



commit fca7a38be891571f8962fc82901215867738f7fd
Author: Avinash Sonawane <rootkea gmail com>
Date:   Mon Dec 20 11:57:57 2021 +0530

    Remove obsolete macro AC_HEADER_TIME

 configure.ac             |  4 +++-
 include/glibtop/global.h | 10 ++--------
 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>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]