summaryrefslogtreecommitdiff
path: root/src/lread.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-04-10 04:10:14 +0000
committerRichard M. Stallman <rms@gnu.org>1996-04-10 04:10:14 +0000
commit1252ac05b8623deae445dee28af6095d8a9727b7 (patch)
treeeced56635d5db9406fc2d160eda50f8b4025d78e /src/lread.c
parent5bbc1b1e29d674ea65647b898c721c96b56e5b87 (diff)
downloademacs-1252ac05b8623deae445dee28af6095d8a9727b7.tar.gz
[MSDOS]: If DJGPP version 2, include unistd.h.
Include msdos.h somewhat earlier.
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lread.c b/src/lread.c
index 11fc04a4f6e..f90bdb2ef2d 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -40,6 +40,13 @@ Boston, MA 02111-1307, USA. */
#include <sys/inode.h>
#endif /* lint */
+#ifdef MSDOS
+#if __DJGPP__ < 2
+#include <unistd.h> /* to get X_OK */
+#endif
+#include "msdos.h"
+#endif
+
#ifndef X_OK
#define X_OK 01
#endif
@@ -49,10 +56,6 @@ Boston, MA 02111-1307, USA. */
#include <stdlib.h>
#endif
-#ifdef MSDOS
-#include "msdos.h"
-#endif
-
#include <math.h>
#endif /* LISP_FLOAT_TYPE */