check for headers at least conditionally
authorChristian Grothoff <christian@grothoff.org>
Sat, 5 Jun 2010 22:42:30 +0000 (22:42 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 5 Jun 2010 22:42:30 +0000 (22:42 +0000)
src/include/gnunet_common.h

index cb2ed4c0c9e4e24ee9059d975b2ae30254331bfa..2d13d0ecc1855f8de8fd24e4baa1646f177b48b0 100644 (file)
 #ifndef GNUNET_COMMON_H
 #define GNUNET_COMMON_H
 
+#if HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#if HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
 /**
  * Version of the API (for entire gnunetutil.so library).
  */