summaryrefslogtreecommitdiffstats
path: root/plugins/common.h
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2024-12-31 11:13:01 +0100
committerHolger Weiss <holger@zedat.fu-berlin.de>2024-12-31 11:13:01 +0100
commitb709a4d858537060a96f2b6986d15d3abcb9529a (patch)
tree3d4b12935f1de8c6a52d9983d27011ea384b317f /plugins/common.h
parent28b4f8dde4318a474c4d7e2ed1d284a304c419d1 (diff)
downloadmonitoring-plugins-b709a4d858537060a96f2b6986d15d3abcb9529a.tar.gz
Don't check for TIME_WITH_SYS_TIME
Follow the suggestion made by the autoupdate(1) tool: | All current systems provide time.h; it need not be checked for. Not | all systems provide sys/time.h, but those that do, all allow you to | include it and time.h simultaneously. Therefore, include sys/time.h if available, and include time.h unconditionally.
Diffstat (limited to 'plugins/common.h')
-rw-r--r--plugins/common.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/common.h b/plugins/common.h
index 833479ce..b7a7d59b 100644
--- a/plugins/common.h
+++ b/plugins/common.h
@@ -90,16 +90,10 @@
90# define GET_NUMBER_OF_CPUS() -1 90# define GET_NUMBER_OF_CPUS() -1
91#endif 91#endif
92 92
93#ifdef TIME_WITH_SYS_TIME 93#ifdef HAVE_SYS_TIME_H
94# include <sys/time.h> 94# include <sys/time.h>
95# include <time.h>
96#else
97# ifdef HAVE_SYS_TIME_H
98# include <sys/time.h>
99# else
100# include <time.h>
101# endif
102#endif 95#endif
96#include <time.h>
103 97
104#ifdef HAVE_SYS_TYPES_H 98#ifdef HAVE_SYS_TYPES_H
105#include <sys/types.h> 99#include <sys/types.h>