aboutsummaryrefslogtreecommitdiff
path: root/src/util/network.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-10-08 14:57:40 +0000
committerChristian Grothoff <christian@grothoff.org>2010-10-08 14:57:40 +0000
commit40c44dfea1fd283af8340419f4dc313b57bee820 (patch)
treefee512f5f68203ca8c343eb207caaf561fef6a58 /src/util/network.c
parent72cb2b1652948034164725ca79c5b00b8d35da61 (diff)
downloadgnunet-40c44dfea1fd283af8340419f4dc313b57bee820.tar.gz
gnunet-40c44dfea1fd283af8340419f4dc313b57bee820.zip
for w32 port
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