about summary refs log tree commit diff
path: root/lib/pmfileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pmfileio.c')
-rw-r--r--lib/pmfileio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pmfileio.c b/lib/pmfileio.c
index dd2e3114..8176ae6a 100644
--- a/lib/pmfileio.c
+++ b/lib/pmfileio.c
@@ -29,6 +29,7 @@
 #define _LARGE_FILE_API
     /* This makes the the x64() functions available on AIX */
 
+#include "netpbm/pm_config.h"
 #include <unistd.h>
 #include <assert.h>
 #include <stdio.h>
@@ -36,8 +37,8 @@
 #include <stdarg.h>
 #include <string.h>
 #include <errno.h>
-#ifdef __DJGPP__
-  #include <io.h>
+#if HAVE_IO_H
+  #include <io.h>  /* For mktemp */
 #endif
 
 #include "netpbm/pm_c_util.h"