summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2017-05-11 17:17:54 -0400
committerAdam Jackson <ajax@redhat.com>2017-05-12 09:49:07 -0400
commit152375f4e4f1ee4833129802730b36af8d0f7e1a (patch)
tree2327abf99ef8a8010eeb37cf6dcbe81aa31ceab7 /os
parentd9e23ea4228575344e3b4c0443cecc5eb75356e4 (diff)
os, xfree86: Stop being so weird about <limits.h>
Whatever problem this is trying to fix, we don't care. Just include the thing and stop worrying about whether _POSIX_SOURCE is defined. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Julien Cristau <jcristau@debian.org> Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'os')
-rw-r--r--os/osdep.h7
-rw-r--r--os/utils.c12
2 files changed, 0 insertions, 19 deletions
diff --git a/os/osdep.h b/os/osdep.h
index a0d57b8db..c5bec3f56 100644
--- a/os/osdep.h
+++ b/os/osdep.h
@@ -55,14 +55,7 @@ SOFTWARE.
#include <X11/Xdmcp.h>
#endif
-#ifdef _POSIX_SOURCE
#include <limits.h>
-#else
-#define _POSIX_SOURCE
-#include <limits.h>
-#undef _POSIX_SOURCE
-#endif
-
#include <stddef.h>
#include <X11/Xos.h>
diff --git a/os/utils.c b/os/utils.c
index 611e8ac23..1972aa120 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -83,19 +83,7 @@ __stdcall unsigned long GetTickCount(void);
#include <X11/fonts/libxfont2.h>
#include "osdep.h"
#include "extension.h"
-#ifdef X_POSIX_C_SOURCE
-#define _POSIX_C_SOURCE X_POSIX_C_SOURCE
#include <signal.h>
-#undef _POSIX_C_SOURCE
-#else
-#if defined(_POSIX_SOURCE)
-#include <signal.h>
-#else
-#define _POSIX_SOURCE
-#include <signal.h>
-#undef _POSIX_SOURCE
-#endif
-#endif
#ifndef WIN32
#include <sys/wait.h>
#endif