From 79051982ae6792f60092a25b6a18e78e413cc90a Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 10 Apr 1996 04:10:14 +0000 Subject: [PATCH] [MSDOS]: If DJGPP version 2, include unistd.h. Include msdos.h somewhat earlier. --- src/lread.c | 11 +++++++---- 1 file 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 #endif /* lint */ +#ifdef MSDOS +#if __DJGPP__ < 2 +#include /* 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 #endif -#ifdef MSDOS -#include "msdos.h" -#endif - #include #endif /* LISP_FLOAT_TYPE */ -- 2.39.2