Code

src/oping.h: Do not check HAVE_*_H for system headers. sh/next
authorSebastian Harl <sh@tokkee.org>
Wed, 22 Jul 2009 13:35:55 +0000 (15:35 +0200)
committerSebastian Harl <sh@tokkee.org>
Wed, 22 Jul 2009 13:35:55 +0000 (15:35 +0200)
Imho, this is not a good thing to do for an installed header since it requires
every user to define those macros as well.

src/oping.h

index 8c2ed08936f20e286b5aebf6dadd0a552593ad45..546f5d33c25d08f9606153775df972c2eb2e77ed 100644 (file)
 # include <config.h>
 #endif
 
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-#if HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#if HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
-#endif
+#include <stdlib.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/socket.h>
 
 #ifdef __cplusplus
 extern "C" {