patch from debian from Kevin 'kiniou' Roy

added __GNU__ and __GLIBC__ to conditional defined in order to compile on KFreeBSD
This commit is contained in:
Campbell Barton 2011-12-26 00:13:03 +00:00
parent 986e62f3b6
commit 65104d49e0

@ -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 @@ double BLI_dir_free_space(const char *dir)
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