]> git.saurik.com Git - bison.git/blobdiff - src/files.c
# updates.
[bison.git] / src / files.c
index f227685eb15bacaaf3f212d0ea82dcc3a44a2d48..e8556a258c6e2a7a71a9c5802d4b3736deea6988 100644 (file)
@@ -42,6 +42,11 @@ Boston, MA 02111-1307, USA.  */
 #endif
 
 #include <stdio.h>
+
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#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");