mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-08 10:20:35 +01:00
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.
This commit is contained in:
parent
ed7b2ec457
commit
032e1445cd
1 changed files with 16 additions and 0 deletions
16
Xext/shm.c
16
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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue