]> granicus.if.org Git - libevent/commitdiff
make it compile on mac os x
authorNiels Provos <provos@gmail.com>
Mon, 13 Feb 2006 04:53:58 +0000 (04:53 +0000)
committerNiels Provos <provos@gmail.com>
Mon, 13 Feb 2006 04:53:58 +0000 (04:53 +0000)
svn:r202

event.h

diff --git a/event.h b/event.h
index 4a14d5def74bfa7cde7baf7e6282b5db3677340f..8787cc0b7236e19e32bf82c90d4844059649867a 100644 (file)
--- a/event.h
+++ b/event.h
@@ -103,11 +103,25 @@ struct event {
 #define EVENT_SIGNAL(ev)       (int)ev->ev_fd
 #define EVENT_FD(ev)           (int)ev->ev_fd
 
+/*
+ * Key-Value pairs.  Can be used for HTTP headers but also for
+ * query argument parsing.
+ */
+struct evkeyval {
+       TAILQ_ENTRY(evkeyval) next;
+
+       char *key;
+       char *value;
+};
+
 #ifdef _EVENT_DEFINED_TQENTRY
 #undef TAILQ_ENTRY
+struct event_list;
+struct evkeyvalq;
 #undef _EVENT_DEFINED_TQENTRY
 #else
 TAILQ_HEAD (event_list, event);
+TAILQ_HEAD (evkeyvalq, evkeyval);
 #endif /* _EVENT_DEFINED_TQENTRY */
 #ifdef _EVENT_DEFINED_RBENTRY
 #undef RB_ENTRY
@@ -365,19 +379,6 @@ void evhttp_request_free(struct evhttp_request *req);
 
 /* Interfaces for dealing with HTTP headers */
 
-/*
- * Key-Value pairs.  Can be used for HTTP headers but also for
- * query argument parsing.
- */
-struct evkeyval {
-       TAILQ_ENTRY(evkeyval) next;
-
-       char *key;
-       char *value;
-};
-
-TAILQ_HEAD(evkeyvalq, evkeyval);
-
 char *evhttp_find_header(struct evkeyvalq *, const char *);
 void evhttp_remove_header(struct evkeyvalq *, const char *);
 int evhttp_add_header(struct evkeyvalq *, const char *, const char *);