[Bf-committers] Svn Rev 24718 BLI_bfile.c error
Dave Plater
dplater at webafrica.org.za
Sat Nov 21 10:59:10 CET 2009
Hi, building blender svn on opensuse build service fails due to the
following error :-
source/blender/blenlib/intern/BLI_bfile.c:250: warning: passing argument
2 of 'BLI_setenv_if_new' from incompatible pointer type
I patched the file with :-
Index: blender-2.50/source/blender/blenlib/intern/BLI_bfile.c
===================================================================
--- blender-2.50.orig/source/blender/blenlib/intern/BLI_bfile.c
+++ blender-2.50/source/blender/blenlib/intern/BLI_bfile.c
@@ -45,6 +45,7 @@
#include "BLI_fileops.h"
#include "BLI_storage.h"
#include "BLI_bfile.h"
+#include <libgen.h>
/* Internal bfile classification flags */
#define BCF_OPEN (0)
but I noticed that #include <libgen.h> existed at the top of the file
conditional to a non win32 build and was commented out.
libgen.h is needed for "dirname" used at BLI_bfile.c:250
Regards
Dave P
More information about the Bf-committers
mailing list