aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-18 18:47:30 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-18 18:47:30 +0100
commitbbfde2060e97546d0a57290793d508617ad0452f (patch)
treef461b79529239d9700e4985176e7583b4142274c /src/include
parent5d70ce8db518144207a99c56f0e0a180370d8ee9 (diff)
downloadgnunet-bbfde2060e97546d0a57290793d508617ad0452f.tar.gz
gnunet-bbfde2060e97546d0a57290793d508617ad0452f.zip
include mandatory includes
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_common.h8
-rw-r--r--src/include/gnunet_network_lib.h6
-rw-r--r--src/include/gnunet_strings_lib.h3
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
46extern "C" 49extern "C"