From b0807b168e5391b9eda69783cd4ebb9b4d82e134 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Fri, 15 Aug 2014 22:53:47 +0200 Subject: [PATCH] Preproc defines in evhttp_compat.h to protect against double inclusion --- src/evhttp/evhttp_compat.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/evhttp/evhttp_compat.h b/src/evhttp/evhttp_compat.h index 657bdd2d..6c1af0d2 100644 --- a/src/evhttp/evhttp_compat.h +++ b/src/evhttp/evhttp_compat.h @@ -1,3 +1,6 @@ +#ifndef _EVHTTP_COMPAT_H_ +#define _EVHTTP_COMPAT_H_ + #include "evhttp.h" /* This file should only be included if using libevent 1 @@ -24,4 +27,4 @@ evhttp_connection_base_new(struct event_base *base, void *ignore, const char *ad void evhttp_request_set_header_cb(struct evhttp_request *req, int (*cb)(struct evhttp_request *, void *)); - +#endif /* _EVHTTP_COMPAT_H_ */