Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-06-24 10:31:29 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-06-24 10:31:29 +0400
commit65bb121401300ffeda6539ddbdef44f2312ab074 (patch)
tree6765ed76e47fb03066275c8979a2cc56056716e7
parent9ca0c7eea3cc2cdda9d6c6014a565372230a059e (diff)
Fix compilation on OSX after own rB414c70435dcd...
Sigh, why can't all unix have same includes? :/
-rw-r--r--source/blender/blenlib/intern/fileops.c1
-rw-r--r--source/blender/blenlib/intern/path_util.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c
index 6123553cd7c..6f65847d7ad 100644
--- a/source/blender/blenlib/intern/fileops.c
+++ b/source/blender/blenlib/intern/fileops.c
@@ -52,7 +52,6 @@
# include "utf_winfunc.h"
# include "utfconv.h"
#else
-# include <unistd.h> // for read close
# include <sys/param.h>
# include <dirent.h>
# include <unistd.h>
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index d95cb5e5ee1..0b89ec1f0d0 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -66,6 +66,7 @@
# ifdef WITH_BINRELOC
# include "binreloc.h"
# endif
+# include <unistd.h> /* mkdtemp on OSX (and probably all *BSD?), not worth making specific check for this OS. */
#endif /* WIN32 */
/* local */