Fix define and conditional include for event_base_new in examples.

This commit is contained in:
W.C.A. Wijngaards 2014-02-06 09:47:38 +01:00
parent ac332d4046
commit eaae7ce5ab
3 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,9 @@
#include "config.h"
#ifdef HAVE_EVENT2_EVENT_H
# include <event2/event.h>
#else
# include <event.h>
#endif
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>

View File

@ -34,6 +34,12 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#ifdef HAVE_EVENT2_EVENT_H
# include <event2/event.h>
#else
# include <event.h>
#endif
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>

View File

@ -1,3 +1,9 @@
#include "config.h"
#ifdef HAVE_EVENT2_EVENT_H
# include <event2/event.h>
#else
# include <event.h>
#endif
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>