diff --git a/Xext/panoramiXprocs.c b/Xext/panoramiXprocs.c index e8252decf..57424135a 100644 --- a/Xext/panoramiXprocs.c +++ b/Xext/panoramiXprocs.c @@ -32,6 +32,7 @@ Equipment Corporation. #include #include "dix/dix_priv.h" +#include "os/osdep.h" #include "windowstr.h" #include "dixfontstr.h" diff --git a/Xext/saver.c b/Xext/saver.c index 705c6b7a9..ec2727ef8 100644 --- a/Xext/saver.c +++ b/Xext/saver.c @@ -36,6 +36,7 @@ in this Software without prior written authorization from the X Consortium. #include "dix/colormap_priv.h" #include "dix/cursor_priv.h" #include "dix/dix_priv.h" +#include "os/osdep.h" #include "os/screensaver.h" #include "misc.h" @@ -62,6 +63,10 @@ in this Software without prior written authorization from the X Consortium. #include "protocol-versions.h" #include "extinit_priv.h" +// temporary workaround for win32/mingw32 name clash +// see: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1355 +#undef CreateWindow + static int ScreenSaverEventBase = 0; static Bool ScreenSaverHandle(ScreenPtr pScreen, int xstate, Bool force); diff --git a/Xext/security.c b/Xext/security.c index 8eb29e150..762513db1 100644 --- a/Xext/security.c +++ b/Xext/security.c @@ -35,6 +35,7 @@ in this Software without prior written authorization from The Open Group. #include "include/extinit_priv.h" #include "os/audit.h" #include "os/auth.h" +#include "os/osdep.h" #include "scrnintstr.h" #include "inputstr.h" diff --git a/Xext/sync.c b/Xext/sync.c index 2172b72cb..e5bee1d5a 100644 --- a/Xext/sync.c +++ b/Xext/sync.c @@ -59,6 +59,7 @@ PERFORMANCE OF THIS SOFTWARE. #include #include "dix/dix_priv.h" +#include "os/osdep.h" #include "scrnintstr.h" #include "os.h" diff --git a/composite/compinit.c b/composite/compinit.c index e645ff6aa..88e69d37e 100644 --- a/composite/compinit.c +++ b/composite/compinit.c @@ -44,6 +44,7 @@ #include #include "dix/dix_priv.h" +#include "os/osdep.h" #include "compint.h" #include "compositeext.h" diff --git a/dix/devices.c b/dix/devices.c index f2ff8e3cb..922e85ae0 100644 --- a/dix/devices.c +++ b/dix/devices.c @@ -60,6 +60,7 @@ SOFTWARE. #include "dix/exevents_priv.h" #include "dix/input_priv.h" #include "dix/ptrveloc_priv.h" +#include "os/osdep.h" #include "xkb/xkbsrv_priv.h" #include "misc.h" diff --git a/dix/gc.c b/dix/gc.c index 16293b318..5f7535803 100644 --- a/dix/gc.c +++ b/dix/gc.c @@ -52,6 +52,7 @@ SOFTWARE. #include #include "dix/gc_priv.h" +#include "os/osdep.h" #include "misc.h" #include "resource.h" diff --git a/fb/fbscreen.c b/fb/fbscreen.c index e825aa92e..220a99511 100644 --- a/fb/fbscreen.c +++ b/fb/fbscreen.c @@ -22,6 +22,8 @@ #include +#include "os/osdep.h" + #include "fb.h" Bool diff --git a/include/misc.h b/include/misc.h index 795cf1890..7cc05c4f6 100644 --- a/include/misc.h +++ b/include/misc.h @@ -390,8 +390,6 @@ extern _X_EXPORT void SwapShorts(short *list, unsigned long count); extern _X_EXPORT void MakePredeclaredAtoms(void); -extern _X_EXPORT int Ones(unsigned long /*mask */ ); - typedef struct _xPoint *DDXPointPtr; typedef struct pixman_box16 *BoxPtr; typedef struct _xEvent *xEventPtr; diff --git a/os/osdep.h b/os/osdep.h index 50d72b218..90df49d35 100644 --- a/os/osdep.h +++ b/os/osdep.h @@ -215,4 +215,6 @@ extern Bool CoreDump; extern Bool NoListenAll; extern Bool AllowByteSwappedClients; +int Ones(unsigned long mask); + #endif /* _OSDEP_H_ */ diff --git a/render/mipict.c b/render/mipict.c index b80b58172..ac376eb71 100644 --- a/render/mipict.c +++ b/render/mipict.c @@ -23,6 +23,8 @@ #include +#include "os/osdep.h" + #include "scrnintstr.h" #include "gcstruct.h" #include "pixmapstr.h" diff --git a/render/picture.c b/render/picture.c index a6091f0ee..c55dcd84e 100644 --- a/render/picture.c +++ b/render/picture.c @@ -25,6 +25,7 @@ #include #include "dix/colormap_priv.h" +#include "os/osdep.h" #include "misc.h" #include "scrnintstr.h" diff --git a/render/render.c b/render/render.c index b43d8d9c9..fa66b3649 100644 --- a/render/render.c +++ b/render/render.c @@ -33,6 +33,7 @@ #include "dix/cursor_priv.h" #include "dix/dix_priv.h" +#include "os/osdep.h" #include "misc.h" #include "os.h" diff --git a/xkb/xkb.c b/xkb/xkb.c index bd44a2094..868d7c1e6 100644 --- a/xkb/xkb.c +++ b/xkb/xkb.c @@ -33,6 +33,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. #include #include "dix/dix_priv.h" +#include "os/osdep.h" #include "misc.h" #include "inputstr.h"