include mandatory includes
authorChristian Grothoff <christian@grothoff.org>
Sat, 18 Jan 2020 17:47:30 +0000 (18:47 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sat, 18 Jan 2020 17:47:30 +0000 (18:47 +0100)
src/include/gnunet_common.h
src/include/gnunet_network_lib.h
src/include/gnunet_strings_lib.h

index 36f9eee4a0e3a4412341b4ceedc1dd52d85b808d..6e185c314ae661fa5af25de251549c37bed8745b 100644 (file)
@@ -36,6 +36,7 @@
 #ifndef GNUNET_COMMON_H
 #define GNUNET_COMMON_H
 
+#include <stdlib.h>
 #if HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
 #ifdef HAVE_STDARG_H
 #include <stdarg.h>
 #endif
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
 
 #ifdef HAVE_BYTESWAP_H
 #include <byteswap.h>
index 47a5b853f8fee89f1a0396e39889b522ec65efdb..e40dacde7c79726c96abddbb5642dada682d0248 100644 (file)
@@ -39,6 +39,12 @@ extern "C"
 #endif
 #endif
 
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#ifdef HAVE_SYS_UN_H
+#include <sys/un.h>
+#endif
 
 /**
  * @brief handle to a socket
index 0c659bfb37be5bf4669156006ceb80878fb34d7b..5e8892c0dc65fa56d5ff4d8333454a4f271bee92 100644 (file)
@@ -41,6 +41,9 @@
    but "stdlib.h" should be portable 'enough' to be
    unconditionally available... */
 #include <stdlib.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netinet/ip.h>
 
 #ifdef __cplusplus
 extern "C"