]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sys_timex: move inclusion of sys/timex.h to sysincl.h
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 10 Dec 2015 09:53:45 +0000 (10:53 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 10 Dec 2015 15:30:38 +0000 (16:30 +0100)
It will be needed by privops.

sys_timex.h
sysincl.h

index c15b16c6c58a97dbeb61ba2a3d86e3af813c74d8..b8617a25829ce98307c5e219736668ddf30da7d5 100644 (file)
@@ -27,8 +27,6 @@
 #ifndef GOT_SYS_TIMEX_H
 #define GOT_SYS_TIMEX_H
 
-#include <sys/timex.h>
-
 #include "localp.h"
 
 extern void SYS_Timex_Initialise(void);
index 2132f826f43c9fddbe66ae4d74db3f8ff3385468..1caf5869c8eb3b7344e0bbd475fa9f54413b11a8 100644 (file)
--- a/sysincl.h
+++ b/sysincl.h
 #include <time.h>
 #include <unistd.h>
 
+#if defined(LINUX) || defined(FREEBSD) || defined(NETBSD) || defined(SOLARIS)
+#include <sys/timex.h>
+#endif
+
 #ifdef HAVE_INTTYPES_H
 #include <inttypes.h>
 #elif HAVE_STDINT_H