diff options
author | 2010-04-22 08:16:44 +0000 | |
---|---|---|
committer | 2010-04-22 08:16:44 +0000 | |
commit | be615d42b99dd11da3dbf41aa3d529965585a299 (patch) | |
tree | a9284db571afcd7f4236f6e53051eefd34bcedd6 /lib/libevent | |
parent | - remove ptei(), which was verified to be unused. (diff) | |
download | wireguard-openbsd-be615d42b99dd11da3dbf41aa3d529965585a299.tar.xz wireguard-openbsd-be615d42b99dd11da3dbf41aa3d529965585a299.zip |
Whoops, EVUTIL_SET_SOCKET_ERROR went missing.
Diffstat (limited to 'lib/libevent')
-rw-r--r-- | lib/libevent/evutil.h | 4 |
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 |