X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/9eceb6c6d30ba64747911b2267f658d130daa90b..41aca2e038810d45e67d0348f3ca91ac6e0f0ff3:/src/files.c diff --git a/src/files.c b/src/files.c index f227685e..e8556a25 100644 --- a/src/files.c +++ b/src/files.c @@ -42,6 +42,11 @@ Boston, MA 02111-1307, USA. */ #endif #include + +#ifdef HAVE_UNISTD_H +#include +#endif + #include "files.h" #include "alloc.h" #include "gram.h" @@ -149,7 +154,7 @@ openfiles (void) strlwr (infile); #endif /* _WIN32 && !__CYGWIN32__ */ -#if (defined(unix) || defined(__unix) || defined(__unix__)) +#if (defined(unix) || defined(__unix) || defined(__unix__) || defined(__EMX__)) { char *tmp_ptr = getenv("TMPDIR");