aboutsummaryrefslogtreecommitdiffstats
path: root/sock.h
diff options
context:
space:
mode:
Diffstat (limited to 'sock.h')
-rw-r--r--sock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sock.h b/sock.h
index 848dc466..66e28987 100644
--- a/sock.h
+++ b/sock.h
@@ -12,6 +12,8 @@
#define sockerr_again() (errno == EINPROGRESS || errno == EINTR)
#ifndef EVENTS_LIBEVENT
#define closesocket(a) close(a)
+#else
+void closesocket( int fd );
#endif
#else
# include <winsock2.h>