From bbfde2060e97546d0a57290793d508617ad0452f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 18 Jan 2020 18:47:30 +0100 Subject: [PATCH] include mandatory includes --- src/include/gnunet_common.h | 8 ++++++++ src/include/gnunet_network_lib.h | 6 ++++++ src/include/gnunet_strings_lib.h | 3 +++ 3 files changed, 17 insertions(+) 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 @@ #ifndef GNUNET_COMMON_H #define GNUNET_COMMON_H +#include #if HAVE_SYS_SOCKET_H #include #endif @@ -48,6 +49,13 @@ #ifdef HAVE_STDARG_H #include #endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif + #ifdef HAVE_BYTESWAP_H #include 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" #endif #endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_SYS_UN_H +#include +#endif /** * @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 @@ but "stdlib.h" should be portable 'enough' to be unconditionally available... */ #include +#include +#include +#include #ifdef __cplusplus extern "C" -- 2.25.1