summaryrefslogtreecommitdiff
path: root/evutil.c
diff options
context:
space:
mode:
authorEd Schouten <ed@nuxi.nl>2015-08-25 15:24:39 +0200
committerAzat Khuzhin <a3at.mail@gmail.com>2015-08-25 19:15:50 +0300
commitfd36647af1f0337add3031c1a7f95354a4bb2828 (patch)
tree609a837ddb205c59d785bfdfc9d208332582ee08 /evutil.c
parent193c7de505039750f973cd2a73c57677e884de9e (diff)
downloadlibevent-fd36647af1f0337add3031c1a7f95354a4bb2828.tar.gz
Don't use BSD u_* types.
These types are not part of POSIX. As we only use them in a small number of places, we'd better replace them by C standard types. This makes a larger part of the code build for CloudABI.
Diffstat (limited to 'evutil.c')
-rw-r--r--evutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/evutil.c b/evutil.c
index b0bdddbb..f6b7f2dd 100644
--- a/evutil.c
+++ b/evutil.c
@@ -313,7 +313,7 @@ evutil_make_socket_nonblocking(evutil_socket_t fd)
{
#ifdef _WIN32
{
- u_long nonblocking = 1;
+ unsigned long nonblocking = 1;
if (ioctlsocket(fd, FIONBIO, &nonblocking) == SOCKET_ERROR) {
event_sock_warn(fd, "fcntl(%d, F_GETFL)", (int)fd);
return -1;