Browse Source

copy filename to ppremake code

David Rose 23 years ago
parent
commit
09b13f8356
1 changed files with 6 additions and 0 deletions
  1. 6 0
      dtool/src/dtoolutil/filename.cxx

+ 6 - 0
dtool/src/dtoolutil/filename.cxx

@@ -37,6 +37,12 @@
 #include <dirent.h>
 #include <dirent.h>
 #endif
 #endif
 
 
+// It's true that dtoolbase.h includes this already, but we include
+// this again in case we are building this file within ppremake.
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
 
 
 #if defined(WIN32)
 #if defined(WIN32)
 /* begin Win32-specific code */
 /* begin Win32-specific code */