diff options
-rw-r--r-- | src/include/gnunet_common.h | 8 | ||||
-rw-r--r-- | src/include/gnunet_network_lib.h | 6 | ||||
-rw-r--r-- | src/include/gnunet_strings_lib.h | 3 |
3 files changed, 17 insertions, 0 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 36f9eee4a..6e185c314 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h | |||
@@ -36,6 +36,7 @@ | |||
36 | #ifndef GNUNET_COMMON_H | 36 | #ifndef GNUNET_COMMON_H |
37 | #define GNUNET_COMMON_H | 37 | #define GNUNET_COMMON_H |
38 | 38 | ||
39 | #include <stdlib.h> | ||
39 | #if HAVE_SYS_SOCKET_H | 40 | #if HAVE_SYS_SOCKET_H |
40 | #include <sys/socket.h> | 41 | #include <sys/socket.h> |
41 | #endif | 42 | #endif |
@@ -48,6 +49,13 @@ | |||
48 | #ifdef HAVE_STDARG_H | 49 | #ifdef HAVE_STDARG_H |
49 | #include <stdarg.h> | 50 | #include <stdarg.h> |
50 | #endif | 51 | #endif |
52 | #ifdef HAVE_SYS_TYPES_H | ||
53 | #include <sys/types.h> | ||
54 | #endif | ||
55 | #ifdef HAVE_SYS_SOCKET_H | ||
56 | #include <sys/socket.h> | ||
57 | #endif | ||
58 | |||
51 | 59 | ||
52 | #ifdef HAVE_BYTESWAP_H | 60 | #ifdef HAVE_BYTESWAP_H |
53 | #include <byteswap.h> | 61 | #include <byteswap.h> |
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h index 47a5b853f..e40dacde7 100644 --- a/src/include/gnunet_network_lib.h +++ b/src/include/gnunet_network_lib.h | |||
@@ -39,6 +39,12 @@ extern "C" | |||
39 | #endif | 39 | #endif |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | #ifdef HAVE_SYS_SOCKET_H | ||
43 | #include <sys/socket.h> | ||
44 | #endif | ||
45 | #ifdef HAVE_SYS_UN_H | ||
46 | #include <sys/un.h> | ||
47 | #endif | ||
42 | 48 | ||
43 | /** | 49 | /** |
44 | * @brief handle to a socket | 50 | * @brief handle to a socket |
diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h index 0c659bfb3..5e8892c0d 100644 --- a/src/include/gnunet_strings_lib.h +++ b/src/include/gnunet_strings_lib.h | |||
@@ -41,6 +41,9 @@ | |||
41 | but "stdlib.h" should be portable 'enough' to be | 41 | but "stdlib.h" should be portable 'enough' to be |
42 | unconditionally available... */ | 42 | unconditionally available... */ |
43 | #include <stdlib.h> | 43 | #include <stdlib.h> |
44 | #include <sys/socket.h> | ||
45 | #include <netinet/in.h> | ||
46 | #include <netinet/ip.h> | ||
44 | 47 | ||
45 | #ifdef __cplusplus | 48 | #ifdef __cplusplus |
46 | extern "C" | 49 | extern "C" |