summaryrefslogtreecommitdiff
path: root/package/libevent/patches/patch-event_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/libevent/patches/patch-event_c')
-rw-r--r--package/libevent/patches/patch-event_c18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/libevent/patches/patch-event_c b/package/libevent/patches/patch-event_c
new file mode 100644
index 000000000..3a7571cfd
--- /dev/null
+++ b/package/libevent/patches/patch-event_c
@@ -0,0 +1,18 @@
+$Id$
+
+ In uClibc, clock_gettime(2) is defined as user-space
+ function in <time.h> instead of <sys/time.h>, so we
+ need that as well. Candidate for sending to upstream.
+
+--- libevent-1.3.orig/event.c 2007-02-16 00:49:06.000000000 +0000
++++ libevent-1.3/event.c 2007-02-18 14:21:29.000000000 +0000
+@@ -51,6 +51,9 @@
+ #include <signal.h>
+ #include <string.h>
+ #include <assert.h>
++#ifdef __UCLIBC__
++#include <time.h>
++#endif
+
+ #include "event.h"
+ #include "event-internal.h"