aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/GetDflt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libX11/src/GetDflt.c')
-rw-r--r--libX11/src/GetDflt.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/libX11/src/GetDflt.c b/libX11/src/GetDflt.c
index 6f62cd820..496253065 100644
--- a/libX11/src/GetDflt.c
+++ b/libX11/src/GetDflt.c
@@ -52,30 +52,7 @@ SOFTWARE.
#include "Xlibint.h"
#include <X11/Xos.h>
#include <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 <X11/Xthreads.h>