summaryrefslogtreecommitdiffstats
path: root/lib/libevent/buffer.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2014-10-18 16:48:28 +0000
committerbluhm <bluhm@openbsd.org>2014-10-18 16:48:28 +0000
commit44e30b10372d07959035c45ba62dee4130f51c99 (patch)
tree4ede9e2f9b3d308b062091b3a54aca2335b1ad30 /lib/libevent/buffer.c
parentUse arc4random_buf() instead of RAND_bytes() or RAND_pseudo_bytes(). (diff)
downloadwireguard-openbsd-44e30b10372d07959035c45ba62dee4130f51c99.tar.xz
wireguard-openbsd-44e30b10372d07959035c45ba62dee4130f51c99.zip
Remove the remaining #ifdef HAVE_ and the #define _GNU_SOURCE.
OK nicm@
Diffstat (limited to 'lib/libevent/buffer.c')
-rw-r--r--lib/libevent/buffer.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/libevent/buffer.c b/lib/libevent/buffer.c
index d84b9b19e8b..eb27e5fa249 100644
--- a/lib/libevent/buffer.c
+++ b/lib/libevent/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.22 2014/10/17 19:16:01 bluhm Exp $ */
+/* $OpenBSD: buffer.c,v 1.23 2014/10/18 16:48:28 bluhm Exp $ */
/*
* Copyright (c) 2002, 2003 Niels Provos <provos@citi.umich.edu>
@@ -27,11 +27,6 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_VASPRINTF
-/* If we have vasprintf, we need to define this before we include stdio.h. */
-#define _GNU_SOURCE
-#endif
-
#include <sys/types.h>
#include <sys/time.h>
#include <sys/ioctl.h>