summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-04-02 20:03:56 +0200
committerTheJackiMonster <thejackimonster@gmail.com>2022-04-02 20:03:56 +0200
commitd8f23ce7e46ff930ef1ccacc0869c4c44999e6e6 (patch)
tree9673ccba08bed6fb304f9bf5cfba06055ecc00dc
parente95235a5f71aa40dea29a02cd8d4d1625add7d39 (diff)
-add include for type fd_set
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r--src/include/gnunet_network_lib.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h
index ff1e853f5..b1cf58711 100644
--- a/src/include/gnunet_network_lib.h
+++ b/src/include/gnunet_network_lib.h
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2009-2013 GNUnet e.V.
+ Copyright (C) 2009-2013, 2022 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -20,6 +20,7 @@
/**
* @author Nils Durner
+ * @author Tobias Frisch
*
* @file
* Basic low-level networking interface
@@ -39,6 +40,13 @@ extern "C"
#endif
#endif
+//#ifdef HAVE_SYS_SELECT_H
+/*
+ * Include "sys/select.h" because it is required to use
+ * "fd_set" in "struct GNUNET_NETWORK_FDSet"!
+ */
+#include <sys/select.h>
+//#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif