[Bf-blender-cvs] [0e3e4c9] master: Fix build for BSD (broken by own 35747ee3d547).

Bastien Montagne noreply at git.blender.org
Thu Apr 3 09:22:24 CEST 2014


Commit: 0e3e4c90b1503f8c0af69c5db210071828549f64
Author: Bastien Montagne
Date:   Thu Apr 3 09:20:04 2014 +0200
https://developer.blender.org/rB0e3e4c90b1503f8c0af69c5db210071828549f64

Fix build for BSD (broken by own 35747ee3d547).

Reported by Shane Ambler, thanks!

===================================================================

M	source/blender/blenloader/intern/writefile.c

===================================================================

diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index 8948689..46e7352 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -85,6 +85,8 @@
 #  include "winsock2.h"
 #  include <io.h>
 #  include "BLI_winstuff.h"
+#else
+#  include <unistd.h>  /* FreeBSD, for write() and close(). */
 #endif
 
 #include "BLI_utildefines.h"




More information about the Bf-blender-cvs mailing list