From 1dbb4a87321d157985844b5314885f4dc809aa1c Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Mon, 29 Sep 2008 23:49:51 +0200 Subject: 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. --- apps/unix/ximage.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/unix/ximage.c') 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 #include -- cgit v1.2.3