[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42874] trunk/blender/source/blender/ blenlib/intern/storage.c: patch from debian from Kevin 'kiniou' Roy

Campbell Barton ideasman42 at gmail.com
Mon Dec 26 01:13:05 CET 2011


Revision: 42874
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42874
Author:   campbellbarton
Date:     2011-12-26 00:13:03 +0000 (Mon, 26 Dec 2011)
Log Message:
-----------
patch from debian from Kevin 'kiniou' Roy

added __GNU__ and __GLIBC__ to conditional defined in order to compile on KFreeBSD

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/intern/storage.c

Modified: trunk/blender/source/blender/blenlib/intern/storage.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/storage.c	2011-12-26 00:05:41 UTC (rev 42873)
+++ trunk/blender/source/blender/blenlib/intern/storage.c	2011-12-26 00:13:03 UTC (rev 42874)
@@ -54,7 +54,7 @@
 #include <sys/mount.h>
 #endif
 
-#if defined(linux) || defined(__CYGWIN32__) || defined(__hpux)
+#if defined(linux) || defined(__CYGWIN32__) || defined(__hpux) || defined(__GNU__) || defined(__GLIBC__)
 #include <sys/vfs.h>
 #endif
 
@@ -180,7 +180,7 @@
 		if (slash) slash[1] = 0;
 	} else strcpy(name,"/");
 
-#if defined (__FreeBSD__) || defined (linux) || defined (__OpenBSD__) || defined (__APPLE__) 
+#if defined (__FreeBSD__) || defined (linux) || defined (__OpenBSD__) || defined (__APPLE__) || defined(__GNU__) || defined(__GLIBC__)
 	if (statfs(name, &disk)) return(-1);
 #endif
 




More information about the Bf-blender-cvs mailing list