From: Christian Grothoff Date: Sat, 18 Jan 2020 17:47:30 +0000 (+0100) Subject: include mandatory includes X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bbfde2060e97546d0a57290793d508617ad0452f;p=oweals%2Fgnunet.git include mandatory includes --- 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"