summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-04-22 08:16:45 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-04-22 08:16:45 +0000
commitac3db0abf6fbccbf574f0f227de12d46eea57413 (patch)
treeaf94810c691dfa483fcf7d9b9656b21447d37d3b
parent0c3fdc8f7fc3ce2001e04f038cc787e97c6ca890 (diff)
Whoops, EVUTIL_SET_SOCKET_ERROR went missing.
-rw-r--r--lib/libevent/evutil.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libevent/evutil.h b/lib/libevent/evutil.h
index 1a7b6864d04..a4c7b9bf123 100644
--- a/lib/libevent/evutil.h
+++ b/lib/libevent/evutil.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: evutil.h,v 1.2 2010/04/21 21:02:47 nicm Exp $ */
+/* $OpenBSD: evutil.h,v 1.3 2010/04/22 08:16:44 nicm Exp $ */
/*
* Copyright (c) 2007 Niels Provos <provos@citi.umich.edu>
@@ -59,6 +59,8 @@ int evutil_make_socket_nonblocking(int sock);
#define EVUTIL_CLOSESOCKET(s) close(s)
#define EVUTIL_SOCKET_ERROR() (errno)
+#define EVUTIL_SET_SOCKET_ERROR(errcode) \
+ do { errno = (errcode); } while (0)
/*
* Manipulation functions for struct timeval