summaryrefslogtreecommitdiff
path: root/apps/unix/ximage.c
diff options
context:
space:
mode:
authorRalph Giles <giles@ghostscript.com>2008-09-29 23:49:51 +0200
committerRalph Giles <giles@ghostscript.com>2008-09-29 23:49:51 +0200
commit1dbb4a87321d157985844b5314885f4dc809aa1c (patch)
treed5b41f085833dec3b67c09ca300aaf1139d9b888 /apps/unix/ximage.c
parent60c5467240c56fe0c7ed28cdb4ac663f76b48963 (diff)
downloadmupdf-1dbb4a87321d157985844b5314885f4dc809aa1c.tar.xz
Add _XOPEN_SOURCE for sys/ipc.h.
Fix a warning from the xorg headers about sys/ipc.h requiring _SVID_SOURCE or _XOPEN_SOURCE. Doing it just in this file may not be entirely safe; it should probably project-wide so all system headers return the same declarations.
Diffstat (limited to 'apps/unix/ximage.c')
-rw-r--r--apps/unix/ximage.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/unix/ximage.c b/apps/unix/ximage.c
index 05ca9eb0..ed2ce9c0 100644
--- a/apps/unix/ximage.c
+++ b/apps/unix/ximage.c
@@ -2,6 +2,10 @@
* Blit ARGB images to X with X(Shm)Images
*/
+#ifndef _XOPEN_SOURCE
+# define _XOPEN_SOURCE 1
+#endif
+
#include <fitz.h>
#include <X11/Xlib.h>