summaryrefslogtreecommitdiffstats
authorUlrich Spörlein <[email protected]>2011-02-08 04:44:00 (GMT)
committer Max Kellermann <[email protected]>2011-03-09 18:53:48 (GMT)
commite2aea6bce581e09e20f7570fd67cb92896f60656 (patch) (side-by-side diff)
tree20252595ed0309f033dd9292480c8e71434c60e3
parent5779146a7feed41f107b3865226134579a66135a (diff)
downloadmpd-e2aea6bce581e09e20f7570fd67cb92896f60656.zip
mpd-e2aea6bce581e09e20f7570fd67cb92896f60656.tar.gz
mpd-e2aea6bce581e09e20f7570fd67cb92896f60656.tar.bz2
output/httpd: include sys/socket.h for AF_UNIX
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--NEWS1
-rw-r--r--src/output/httpd_output_plugin.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 8bff5ae..f51f612 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ ver 0.16.2 (2011/??/??)
- gme: detect end of song
* output:
- httpd: fix uninitialized variable
+ - httpd: include sys/socket.h
- oss: AFMT_S24_PACKED is little-endian
- oss: disable 24 bit playback on FreeBSD
diff --git a/src/output/httpd_output_plugin.c b/src/output/httpd_output_plugin.c
index 27103c3..fe9a442 100644
--- a/src/output/httpd_output_plugin.c
+++ b/src/output/httpd_output_plugin.c
@@ -34,6 +34,7 @@
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
+#include <sys/socket.h> /* needed for AF_UNIX */
#ifdef HAVE_LIBWRAP
#include <tcpd.h>