]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
clean up sysincl.h
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 15 Sep 2015 16:42:09 +0000 (18:42 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 17 Sep 2015 13:57:44 +0000 (15:57 +0200)
sysincl.h

index 31d28ad0191ac76b02631ec936b842f94ea9fcb7..e04b6e144ae4974624f3a8853cc5a555a4652b12 100644 (file)
--- a/sysincl.h
+++ b/sysincl.h
 #ifndef GOT_SYSINCL_H
 #define GOT_SYSINCL_H
 
-#if defined (SOLARIS) || defined(SUNOS) || defined(LINUX) || defined(NETBSD) || defined (MACOSX)
-
-#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(MACOSX)
-#include <alloca.h>
-#endif
 #include <assert.h>
 #include <ctype.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <float.h>
 #include <glob.h>
-#if !defined(__FreeBSD__) && !defined(MACOSX)
-#include <malloc.h>
-#endif
 #include <math.h>
 #include <netdb.h>
 #include <netinet/in.h>
 
 #include <unistd.h>
 
-#endif
-
 #ifdef FEAT_IPV6
 /* For inet_ntop() */
 #include <arpa/inet.h>
 #endif
 
-#if defined (SOLARIS) || defined(SUNOS)
-/* Only needed on these platforms, and doesn't exist on some Linux
-   versions. */
-#include <nlist.h>
-#endif
-
 #endif /* GOT_SYSINCL_H */