From 1714f3dee4f54335590b07c3bdae629efcac5085 Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 3 May 2015 07:59:34 +0200 Subject: [PATCH] [mpd] move include of libevent from mpd.h to mpd.c --- src/mpd.c | 10 +++++++++- src/mpd.h | 8 -------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/mpd.c b/src/mpd.c index ded4bbd8..152cc2a3 100644 --- a/src/mpd.c +++ b/src/mpd.c @@ -34,6 +34,15 @@ #include #include +#ifdef HAVE_LIBEVENT2 +# include +# include +# include +# include +#else +# include +#endif + #if defined(HAVE_SYS_EVENTFD_H) && defined(HAVE_EVENTFD) # define USE_EVENTFD # include @@ -48,7 +57,6 @@ #include "conffile.h" #include "misc.h" #include "listener.h" -#include "mpd.h" #include "player.h" #include "filescanner.h" diff --git a/src/mpd.h b/src/mpd.h index c5430a40..5df5917a 100644 --- a/src/mpd.h +++ b/src/mpd.h @@ -2,14 +2,6 @@ #ifndef __MPD_H__ #define __MPD_H__ -#ifdef HAVE_LIBEVENT2 -# include -# include -# include -# include -#else -# include -#endif int mpd_init(void);