From 661a557500f0e1d58194de53ecbcf28682022c93 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sun, 28 Sep 2014 22:26:23 +0200 Subject: [PATCH] Proper update to libevent 2 in spotify.h and pipe.h --- src/pipe.h | 6 +++++- src/spotify.h | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/pipe.h b/src/pipe.h index ba57a814..116ead9c 100644 --- a/src/pipe.h +++ b/src/pipe.h @@ -3,7 +3,11 @@ #define __PIPE_H__ #include "db.h" -#include +#ifdef HAVE_LIBEVENT2 +# include +#else +# include +#endif int pipe_setup(struct media_file_info *mfi); diff --git a/src/spotify.h b/src/spotify.h index 72a3dcc9..e4fce854 100644 --- a/src/spotify.h +++ b/src/spotify.h @@ -3,7 +3,12 @@ #define __SPOTIFY_H__ #include "db.h" -#include +#ifdef HAVE_LIBEVENT2 +# include +# include +#else +# include +#endif int spotify_playback_play(struct media_file_info *mfi);