From 032e1445cdfab6895513ca080f7e1e2575b7aee7 Mon Sep 17 00:00:00 2001 From: Demi Marie Obenour Date: Thu, 12 Aug 2021 19:52:27 -0400 Subject: [PATCH] Use a bundled protocol definition struct This is necessary for the X server to build if the protocol headers are old, so that I can get testing on the CI. --- Xext/shm.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Xext/shm.c b/Xext/shm.c index 0d8d65404..27ef3761e 100644 --- a/Xext/shm.c +++ b/Xext/shm.c @@ -1218,6 +1218,22 @@ ProcShmAttachFd(ClientPtr client) return ProcShmAttachFdCommon(client, 0, size, fd); } +#ifndef X_ShmAttachFdExt +#define X_ShmAttachFdExt 8 + +typedef struct { + CARD8 reqType; /* always ShmReqCode */ + CARD8 shmReqType; /* always X_ShmAttachFdExt */ + CARD16 length; + CARD32 shmseg; + BOOL readOnly; + BYTE pad0; + CARD16 pad1; + CARD32 size; /* size of the buffer */ + CARD64 offset; /* offset to pass to mmap() */ +} xShmAttachFdExtReq; +#endif + static int ProcShmAttachFdExt(ClientPtr client) {