summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog2
-rw-r--r--Build/source/texk/dvipdfm-x/dpxfile.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index e60a4d8d8a5..050eff7f394 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,4 +1,4 @@
-2016-10-04 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+2016-10-05 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
* dpxfile.c: Use PATH_MAX instead of _MAX_PATH.
diff --git a/Build/source/texk/dvipdfm-x/dpxfile.c b/Build/source/texk/dvipdfm-x/dpxfile.c
index 051180cce88..34530269c3a 100644
--- a/Build/source/texk/dvipdfm-x/dpxfile.c
+++ b/Build/source/texk/dvipdfm-x/dpxfile.c
@@ -61,9 +61,14 @@
#endif
#endif
+#if defined(MIKTEX) || defined(TESTCOMPILE)
+#if defined(__APPLE__)
+# include <sys/syslimits.h>
+#endif
#if !defined(PATH_MAX)
# define PATH_MAX 256
#endif
+#endif /* MIKTEX || TESTCOMPILE */
static int verbose = 0;
int keep_cache = 0;