aboutsummaryrefslogtreecommitdiffstats
path: root/sock.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-10-02 20:03:19 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2010-10-02 20:03:19 -0700
commit25b5a4a30f8a767bfd4577aa284bd435f7e5fb97 (patch)
treeaa2a27c1ff03e9a32317a6d0871135d2cb66d1b9 /sock.h
parent04f0c10b5a45d0bb1a1f8888e0eb2f6db8fc1b84 (diff)
Make sure events_*.c are fully compatible to callers so plugins built for
a different flavour will still work.
Diffstat (limited to 'sock.h')
-rw-r--r--sock.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/sock.h b/sock.h
index 66e28987..a0d49d95 100644
--- a/sock.h
+++ b/sock.h
@@ -10,11 +10,7 @@
#define sock_make_nonblocking(fd) fcntl(fd, F_SETFL, O_NONBLOCK)
#define sock_make_blocking(fd) fcntl(fd, F_SETFL, 0)
#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>
# include <ws2tcpip.h>