[mpd] move include of libevent from mpd.h to mpd.c

This commit is contained in:
chme 2015-05-03 07:59:34 +02:00
parent 36499f4997
commit 1714f3dee4
2 changed files with 9 additions and 9 deletions

View File

@ -34,6 +34,15 @@
#include <stdint.h>
#include <inttypes.h>
#ifdef HAVE_LIBEVENT2
# include <event2/event.h>
# include <event2/buffer.h>
# include <event2/bufferevent.h>
# include <event2/listener.h>
#else
# include <event.h>
#endif
#if defined(HAVE_SYS_EVENTFD_H) && defined(HAVE_EVENTFD)
# define USE_EVENTFD
# include <sys/eventfd.h>
@ -48,7 +57,6 @@
#include "conffile.h"
#include "misc.h"
#include "listener.h"
#include "mpd.h"
#include "player.h"
#include "filescanner.h"

View File

@ -2,14 +2,6 @@
#ifndef __MPD_H__
#define __MPD_H__
#ifdef HAVE_LIBEVENT2
# include <event2/event.h>
# include <event2/buffer.h>
# include <event2/bufferevent.h>
# include <event2/listener.h>
#else
# include <event.h>
#endif
int
mpd_init(void);