aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/GetDflt.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-03-02 13:03:55 -0800
committerUlrich Sibiller <uli42@gmx.de>2016-10-12 09:34:38 +0200
commitb20710586d97c69c47aa657c29c8df661f6fe417 (patch)
tree73f399a0909a7d5afd3713e7e8ee070a6f5abc31 /nx-X11/lib/X11/GetDflt.c
parent05b72b8da17d6077b085608c128ec9e698473bb6 (diff)
downloadnx-libs-b20710586d97c69c47aa657c29c8df661f6fe417.tar.gz
nx-libs-b20710586d97c69c47aa657c29c8df661f6fe417.tar.bz2
nx-libs-b20710586d97c69c47aa657c29c8df661f6fe417.zip
Move repeated #ifdef magic to find PATH_MAX into a common header
Lets stop duplicating the mess all over Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr> Signed-off-by: Julien Cristau <jcristau@debian.org> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/GetDflt.c')
-rw-r--r--nx-X11/lib/X11/GetDflt.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/nx-X11/lib/X11/GetDflt.c b/nx-X11/lib/X11/GetDflt.c
index 0c00b3c94..749893c7e 100644
--- a/nx-X11/lib/X11/GetDflt.c
+++ b/nx-X11/lib/X11/GetDflt.c
@@ -52,30 +52,7 @@ SOFTWARE.
#include "Xlibint.h"
#include <nx-X11/Xos.h>
#include <nx-X11/Xresource.h>
-
-#ifndef X_NOT_POSIX
-#ifdef _POSIX_SOURCE
-#include <limits.h>
-#else
-#define _POSIX_SOURCE
-#include <limits.h>
-#undef _POSIX_SOURCE
-#endif
-#endif
-#ifndef PATH_MAX
-#ifdef WIN32
-#define PATH_MAX 512
-#else
-#include <sys/param.h>
-#endif
-#ifndef PATH_MAX
-#ifdef MAXPATHLEN
-#define PATH_MAX MAXPATHLEN
-#else
-#define PATH_MAX 1024
-#endif
-#endif
-#endif
+#include "pathmax.h"
#ifdef XTHREADS
#include <nx-X11/Xthreads.h>