diff options
author | Avuton Olrich <avuton@gmail.com> | 2010-03-22 07:15:39 -0700 |
---|---|---|
committer | Avuton Olrich <avuton@gmail.com> | 2010-03-22 07:15:39 -0700 |
commit | 06f86b4532f272307c1837b50a24c3883e7f9975 (patch) | |
tree | 844a836f67998f40d021ce96d4e735fd95f3b3bc /src/output | |
parent | 68ece2fef3a8e3f6c29d72cda2d536cb8c446d51 (diff) | |
download | mpd-06f86b4532f272307c1837b50a24c3883e7f9975.tar.gz mpd-06f86b4532f272307c1837b50a24c3883e7f9975.tar.xz mpd-06f86b4532f272307c1837b50a24c3883e7f9975.zip |
Add support for building httpd_output plugin for win32
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/httpd_internal.h | 5 | ||||
-rw-r--r-- | src/output/httpd_output_plugin.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/output/httpd_internal.h b/src/output/httpd_internal.h index eebc801c4..e77a2fe0f 100644 --- a/src/output/httpd_internal.h +++ b/src/output/httpd_internal.h @@ -29,7 +29,12 @@ #include <glib.h> +#ifdef WIN32 +#include <winsock2.h> +#include <ws2tcpip.h> +#else #include <sys/socket.h> +#endif #include <stdbool.h> struct httpd_client; diff --git a/src/output/httpd_output_plugin.c b/src/output/httpd_output_plugin.c index c42e4cc1d..0467a88c5 100644 --- a/src/output/httpd_output_plugin.c +++ b/src/output/httpd_output_plugin.c @@ -31,8 +31,13 @@ #include <assert.h> #include <sys/types.h> +#ifdef WIN32 +#include <winsock2.h> +#include <ws2tcpip.h> +#else #include <netinet/in.h> #include <netdb.h> +#endif #include <unistd.h> #include <errno.h> |