gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: include mandatory includes


From: gnunet
Subject: [gnunet] branch master updated: include mandatory includes
Date: Sat, 18 Jan 2020 18:51:00 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new bbfde2060 include mandatory includes
bbfde2060 is described below

commit bbfde2060e97546d0a57290793d508617ad0452f
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Jan 18 18:47:30 2020 +0100

    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 <stdlib.h>
 #if HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
@@ -48,6 +49,13 @@
 #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>
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 <sys/socket.h>
+#endif
+#ifdef HAVE_SYS_UN_H
+#include <sys/un.h>
+#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 <stdlib.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netinet/ip.h>
 
 #ifdef __cplusplus
 extern "C"

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]