aboutsummaryrefslogtreecommitdiff
path: root/src/util/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/network.c')
-rw-r--r--src/util/network.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/util/network.c b/src/util/network.c
index 2f3ac43b2..cf74d43ad 100644
--- a/src/util/network.c
+++ b/src/util/network.c
@@ -852,6 +852,23 @@ GNUNET_NETWORK_fdset_handle_set (struct GNUNET_NETWORK_FDSet *fds,
852} 852}
853 853
854 854
855#if MINGW
856/**
857 * Add a W32 file handle to the fd set
858 * @param fds fd set
859 * @param h the file handle to add
860 */
861void
862GNUNET_NETWORK_fdset_handle_set_native_w32_handle (struct GNUNET_NETWORK_FDSet *fds,
863 HANDLE h)
864{
865 GNUNET_CONTAINER_slist_add (fds->handles,
866 GNUNET_CONTAINER_SLIST_DISPOSITION_TRANSIENT,
867 &h, sizeof (HANDLE));
868}
869#endif
870
871
855/** 872/**
856 * Check if a file handle is part of an fd set 873 * Check if a file handle is part of an fd set
857 * @param fds fd set 874 * @param fds fd set