mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-26 01:59:57 +00:00
os: Don't include <winsock2.h> on Cygwin
Fix compilation on Cygwin after600d53e98f("os: simplify win32 uname()"). Similarly to30b7d7995e("Fix build on Cygwin by ensuring WIN32 check triggers only on MinGW"), check for both WIN32 and !CYGWIN before including it. Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2361> (cherry picked from commitdc1a4e0348)
This commit is contained in:
parent
3dfa619db6
commit
5a891eb762
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ extern Bool ComputeLocalClient(ClientPtr client);
|
|||
void TimerInit(void);
|
||||
Bool TimerForce(OsTimerPtr timer);
|
||||
|
||||
#ifdef WIN32
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
#include <X11/Xwinsock.h>
|
||||
struct utsname {
|
||||
char nodename[512];
|
||||
|
|
|
|||
Loading…
Reference in a new issue