aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-07-06 14:40:06 +0200
committerMax Kellermann <max@duempel.org>2009-07-06 14:40:06 +0200
commit64ca94c91020626edf626a7e639e168dba9e7d74 (patch)
treea6308ae474310cadbd5454d5dcab120996b7f7bf
parent00eea0e61509847d52c6e7c328c526cd8ea21f5e (diff)
downloadmpd-64ca94c91020626edf626a7e639e168dba9e7d74.tar.gz
mpd-64ca94c91020626edf626a7e639e168dba9e7d74.tar.xz
mpd-64ca94c91020626edf626a7e639e168dba9e7d74.zip
output/httpd: include sys/types.h
On Mac OS X, the httpd plugin cannot be compiled, because OS X's system headers do nto include sys/types.h, although they use u_int32_t.
-rw-r--r--NEWS2
-rw-r--r--src/output/httpd_output_plugin.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 8c3d17862..8872c3c1f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,6 @@
ver 0.15.1 (2009/??/??)
+* output:
+ - httpd: include sys/types.h (fixes Mac OS X)
* commands:
- don't resume playback when stopping during pause
* database: fixed NULL pointer dereference after charset change
diff --git a/src/output/httpd_output_plugin.c b/src/output/httpd_output_plugin.c
index 02fa1cf17..edfc1063d 100644
--- a/src/output/httpd_output_plugin.c
+++ b/src/output/httpd_output_plugin.c
@@ -28,6 +28,7 @@
#include <assert.h>
+#include <sys/types.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>