mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
Condense winsock includes and defines into one header.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@428 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
9818d67ec2
commit
5fcbf04f5b
14 changed files with 41 additions and 65 deletions
|
|
@ -335,6 +335,7 @@ libpolyp_@PA_MAJORMINOR@_la_SOURCES = \
|
||||||
tagstruct.c tagstruct.h \
|
tagstruct.c tagstruct.h \
|
||||||
typeid.c typeid.h \
|
typeid.c typeid.h \
|
||||||
util.c util.h \
|
util.c util.h \
|
||||||
|
winsock.h \
|
||||||
xmalloc.c xmalloc.h
|
xmalloc.c xmalloc.h
|
||||||
|
|
||||||
if HAVE_X11
|
if HAVE_X11
|
||||||
|
|
@ -476,6 +477,7 @@ libpolypcore_la_SOURCES = \
|
||||||
tokenizer.c tokenizer.h \
|
tokenizer.c tokenizer.h \
|
||||||
typeid.c typeid.h \
|
typeid.c typeid.h \
|
||||||
util.c util.h \
|
util.c util.h \
|
||||||
|
winsock.h \
|
||||||
xmalloc.c xmalloc.h
|
xmalloc.c xmalloc.h
|
||||||
|
|
||||||
libpolypcore_la_CPPFLAGS = $(AM_CPPFLAGS)
|
libpolypcore_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,7 @@
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
#include "winsock.h"
|
||||||
#include <winsock2.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "iochannel.h"
|
#include "iochannel.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
|
||||||
|
|
@ -42,15 +42,13 @@
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
|
||||||
#include <winsock2.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_LIBWRAP
|
#ifdef HAVE_LIBWRAP
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
#include <tcpd.h>
|
#include <tcpd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "winsock.h"
|
||||||
|
|
||||||
#include "core.h"
|
#include "core.h"
|
||||||
#include "mainloop.h"
|
#include "mainloop.h"
|
||||||
#include "module.h"
|
#include "module.h"
|
||||||
|
|
|
||||||
|
|
@ -38,9 +38,7 @@
|
||||||
#include "poll.h"
|
#include "poll.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
#include "winsock.h"
|
||||||
#include <winsock2.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "mainloop.h"
|
#include "mainloop.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
|
||||||
|
|
@ -40,12 +40,7 @@
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
#include "winsock.h"
|
||||||
#include <winsock2.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_WS2TCPIP_H
|
|
||||||
#include <ws2tcpip.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "module.h"
|
#include "module.h"
|
||||||
#include "socket-server.h"
|
#include "socket-server.h"
|
||||||
|
|
|
||||||
11
polyp/poll.c
11
polyp/poll.c
|
|
@ -36,16 +36,7 @@
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
#include "winsock.h"
|
||||||
#include <winsock2.h>
|
|
||||||
|
|
||||||
#define EBADF WSAEBADF
|
|
||||||
#define ESHUTDOWN WSAESHUTDOWN
|
|
||||||
#define ECONNRESET WSAECONNRESET
|
|
||||||
#define ECONNABORTED WSAECONNABORTED
|
|
||||||
#define ENETRESET WSAENETRESET
|
|
||||||
|
|
||||||
#endif /* HAVE_WINSOCK2_H */
|
|
||||||
|
|
||||||
#ifndef HAVE_SYS_POLL_H
|
#ifndef HAVE_SYS_POLL_H
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,12 +45,7 @@
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
#include "winsock.h"
|
||||||
#include <winsock2.h>
|
|
||||||
#define ETIMEDOUT WSAETIMEDOUT
|
|
||||||
#define ECONNREFUSED WSAECONNREFUSED
|
|
||||||
#define EHOSTUNREACH WSAEHOSTUNREACH
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "polyplib-internal.h"
|
#include "polyplib-internal.h"
|
||||||
#include "polyplib-context.h"
|
#include "polyplib-context.h"
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,7 @@
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
#include "winsock.h"
|
||||||
#include <winsock2.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "pstream.h"
|
#include "pstream.h"
|
||||||
#include "queue.h"
|
#include "queue.h"
|
||||||
|
|
|
||||||
|
|
@ -48,19 +48,12 @@
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
|
||||||
#include <winsock2.h>
|
|
||||||
#define EINPROGRESS WSAEINPROGRESS
|
|
||||||
#define ETIMEDOUT WSAETIMEDOUT
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_WS2TCPIP_H
|
|
||||||
#include <ws2tcpip.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_LIBASYNCNS
|
#ifdef HAVE_LIBASYNCNS
|
||||||
#include <asyncns.h>
|
#include <asyncns.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "winsock.h"
|
||||||
|
|
||||||
#include "socket-client.h"
|
#include "socket-client.h"
|
||||||
#include "socket-util.h"
|
#include "socket-util.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
|
||||||
|
|
@ -48,17 +48,12 @@
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
|
||||||
#include <winsock2.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_WS2TCPIP_H
|
|
||||||
#include <ws2tcpip.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_LIBWRAP
|
#ifdef HAVE_LIBWRAP
|
||||||
#include <tcpd.h>
|
#include <tcpd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "winsock.h"
|
||||||
|
|
||||||
#include "socket-server.h"
|
#include "socket-server.h"
|
||||||
#include "socket-util.h"
|
#include "socket-util.h"
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
|
|
|
||||||
|
|
@ -57,10 +57,7 @@
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
#include "winsock.h"
|
||||||
#include <winsock2.h>
|
|
||||||
#define ETIMEDOUT WSAETIMEDOUT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "socket-util.h"
|
#include "socket-util.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
|
||||||
|
|
@ -33,9 +33,7 @@
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
#include "winsock.h"
|
||||||
#include <winsock2.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "tagstruct.h"
|
#include "tagstruct.h"
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
|
|
|
||||||
|
|
@ -59,13 +59,6 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
|
||||||
#include <winsock2.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_WS2TCPIP_H
|
|
||||||
#include <ws2tcpip.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <samplerate.h>
|
#include <samplerate.h>
|
||||||
|
|
||||||
#ifdef HAVE_PWD_H
|
#ifdef HAVE_PWD_H
|
||||||
|
|
@ -75,6 +68,8 @@
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "winsock.h"
|
||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|
|
||||||
23
polyp/winsock.h
Normal file
23
polyp/winsock.h
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
#ifndef foowinsockhfoo
|
||||||
|
#define foowinsockhfoo
|
||||||
|
|
||||||
|
#ifdef HAVE_WINSOCK2_H
|
||||||
|
#include <winsock2.h>
|
||||||
|
|
||||||
|
#define EBADF WSAEBADF
|
||||||
|
#define ESHUTDOWN WSAESHUTDOWN
|
||||||
|
#define ECONNRESET WSAECONNRESET
|
||||||
|
#define ECONNABORTED WSAECONNABORTED
|
||||||
|
#define ENETRESET WSAENETRESET
|
||||||
|
#define EINPROGRESS WSAEINPROGRESS
|
||||||
|
#define ETIMEDOUT WSAETIMEDOUT
|
||||||
|
#define ECONNREFUSED WSAECONNREFUSED
|
||||||
|
#define EHOSTUNREACH WSAEHOSTUNREACH
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_WS2TCPIP_H
|
||||||
|
#include <ws2tcpip.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
Loading…
Add table
Add a link
Reference in a new issue