xquartz: fix compilation

Fixes #1788

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1777>
This commit is contained in:
Aki Sakurai 2025-02-09 10:11:52 +08:00
parent 2631cad85d
commit da0de21b72
4 changed files with 7 additions and 1 deletions

View File

@ -52,6 +52,8 @@
#include <asl.h>
#include <stdlib.h>
#include "dix_priv.h"
extern aslclient aslc;
extern char *bundle_id_prefix;

View File

@ -387,7 +387,7 @@ ProcAppleWMSetWindowMenu(register ClientPtr client)
return BadAlloc;
}
max_len = (client->req-len << 2) - sizeof(xAppleWMSetWindowMenuReq);
max_len = (client->req_len << 2) - sizeof(xAppleWMSetWindowMenuReq);
bytes = (char *)&stuff[1];
for (i = j = 0; i < max_len && j < nitems;) {

View File

@ -70,6 +70,9 @@
#define NO_CFPLUGIN
#include <IOKit/hidsystem/IOHIDLib.h>
#include "input_priv.h"
#include "screenint_priv.h"
#ifdef MITSHM
#include "shmint.h"
#endif

View File

@ -37,6 +37,7 @@
#include <X11/Xatom.h>
#include "mi/mi_priv.h"
#include "dix_priv.h"
#ifdef __APPLE__
#include <Xplugin.h>