1
0

patch-event_c 474 B

123456789101112131415161718
  1. $Id$
  2. In uClibc, clock_gettime(2) is defined as user-space
  3. function in <time.h> instead of <sys/time.h>, so we
  4. need that as well. Candidate for sending to upstream.
  5. --- libevent-1.3.orig/event.c 2007-02-16 00:49:06.000000000 +0000
  6. +++ libevent-1.3/event.c 2007-02-18 14:21:29.000000000 +0000
  7. @@ -51,6 +51,9 @@
  8. #include <signal.h>
  9. #include <string.h>
  10. #include <assert.h>
  11. +#ifdef __UCLIBC__
  12. +#include <time.h>
  13. +#endif
  14. #include "event.h"
  15. #include "event-internal.h"