]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
clean up sysincl.h more
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 18 Sep 2015 08:07:56 +0000 (10:07 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 18 Sep 2015 08:07:56 +0000 (10:07 +0200)
Define feature test macros in config.h if needed.

sysincl.h

index e04b6e144ae4974624f3a8853cc5a555a4652b12..30e9b483c61c062719386908bdf7410a88692e23 100644 (file)
--- a/sysincl.h
+++ b/sysincl.h
@@ -55,6 +55,7 @@
 #include <sys/shm.h>
 #include <syslog.h>
 #include <time.h>
+#include <unistd.h>
 
 #ifdef HAVE_INTTYPES_H
 #include <inttypes.h>
 /* Tough */
 #endif
 
-/* One or other of these to make getsid() visible */
-#define __EXTENSIONS__ 1
-#define __USE_XOPEN_EXTENDED 1
-
-#include <unistd.h>
-
 #ifdef FEAT_IPV6
 /* For inet_ntop() */
 #include <arpa/inet.h>