From e32d055b5e15a9e5b095f455b1f82f9d557556eb Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 6 Nov 2009 21:23:52 +0000 Subject: [PATCH] Backport GNU/kfreebsd kqueue fix svn:r1515 --- ChangeLog | 1 + kqueue.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 71853571..feeba53a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ Changes in 1.4.13-stable: o Fix compilation on Android, which forgot to define fd_mask in its sys/select.h o Do not drop data from evbuffer when out of memory; reported by Jacek Masiulaniec o Rename our replacement compat/sys/_time.h header to avoid build a conflict on HPUX; reported by Kathryn Hogg. + o Build kqueue.c correctly on GNU/kFreeBSD platforms. Patch pulled upstream from Debian. Changes in 1.4.12-stable: diff --git a/kqueue.c b/kqueue.c index ca7df1c0..6946cbeb 100644 --- a/kqueue.c +++ b/kqueue.c @@ -30,6 +30,8 @@ #include "config.h" #endif +#define _GNU_SOURCE 1 + #include #ifdef HAVE_SYS_TIME_H #include