mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
[mpd] move include of libevent from mpd.h to mpd.c
This commit is contained in:
parent
36499f4997
commit
1714f3dee4
10
src/mpd.c
10
src/mpd.c
@ -34,6 +34,15 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <inttypes.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)
|
#if defined(HAVE_SYS_EVENTFD_H) && defined(HAVE_EVENTFD)
|
||||||
# define USE_EVENTFD
|
# define USE_EVENTFD
|
||||||
# include <sys/eventfd.h>
|
# include <sys/eventfd.h>
|
||||||
@ -48,7 +57,6 @@
|
|||||||
#include "conffile.h"
|
#include "conffile.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "listener.h"
|
#include "listener.h"
|
||||||
#include "mpd.h"
|
|
||||||
|
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "filescanner.h"
|
#include "filescanner.h"
|
||||||
|
@ -2,14 +2,6 @@
|
|||||||
#ifndef __MPD_H__
|
#ifndef __MPD_H__
|
||||||
#define __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
|
int
|
||||||
mpd_init(void);
|
mpd_init(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user