summaryrefslogtreecommitdiff
path: root/xserver/Xext/shm.c
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/Xext/shm.c')
-rw-r--r--xserver/Xext/shm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xserver/Xext/shm.c b/xserver/Xext/shm.c
index a48d2bd5b..e4962faf6 100644
--- a/xserver/Xext/shm.c
+++ b/xserver/Xext/shm.c
@@ -54,8 +54,12 @@ in this Software without prior written authorization from The Open Group.
#include "servermd.h"
#include "shmint.h"
#include "xace.h"
+#ifdef HAVE_X11_EXTENSIONS_SHMPROTO_H
+#include <X11/extensions/shmproto.h>
+#else
#define _XSHM_SERVER_
#include <X11/extensions/shmstr.h>
+#endif
#include <X11/Xfuncproto.h>
/* Needed for Solaris cross-zone shared memory extension */