mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
os: enable UNIX sockets on Mingw32
Mingw32 also supports unix sockets, so no need to disable them here. Since it's now always enabled, follow-up commits can now drop all the extra #ifdef's on UNIXCONN and so reduce complexity. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
16d4d44551
commit
9a54f4b908
@@ -73,12 +73,14 @@ from the copyright holders.
|
||||
#ifdef XTHREADS
|
||||
#include <X11/Xthreads.h>
|
||||
#endif
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "os/ossock.h"
|
||||
|
||||
#ifndef WIN32
|
||||
|
||||
#if defined(UNIXCONN)
|
||||
#include <sys/un.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
@@ -90,12 +92,6 @@ from the copyright holders.
|
||||
#include <X11/Xos_r.h>
|
||||
#endif
|
||||
|
||||
#ifdef UNIXCONN
|
||||
#include <sys/un.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef NO_TCP_H
|
||||
#if defined(linux) || defined(__GLIBC__)
|
||||
#include <sys/param.h>
|
||||
@@ -120,6 +116,8 @@ from the copyright holders.
|
||||
#include <X11/Xwindows.h>
|
||||
#include <X11/Xw32defs.h>
|
||||
|
||||
#include <afunix.h>
|
||||
|
||||
#undef EADDRINUSE
|
||||
#define EADDRINUSE WSAEADDRINUSE
|
||||
#undef EWOULDBLOCK
|
||||
|
||||
Reference in New Issue
Block a user