aboutsummaryrefslogtreecommitdiffstats
path: root/sock.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-06-21 18:34:33 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-06-21 18:34:33 +0200
commitb72caac09b5944ee9954eb18262fe45228665570 (patch)
treeb44353f8ab3d23702f49e129d53b787952fe6546 /sock.h
parent3af70b06b2f0fb0fb41a041f6d86e3711b9eea3f (diff)
parentdf417ca6657bc824e1dbd4a6026284656a42ce40 (diff)
Merging libevent branch: Events can now be handles by both glib and libevent.
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 28d31de9..ff7034a6 100644
--- a/sock.h
+++ b/sock.h
@@ -17,7 +17,9 @@
#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)
+#endif
#else
# include <winsock2.h>
# ifndef _MSC_VER