From: Kevin 'kiniou' Roy Date: Tue, 28 Sep 2010 15:50:17 +0200 Subject: [PATCH] fix_FTBFS_on_KFreeBSD added __GNU__ and __GLIBC__ to conditional defined in order to compile on KFreeBSD --- source/blender/blenlib/intern/storage.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c index a31b171..f179543 100644 --- a/source/blender/blenlib/intern/storage.c +++ b/source/blender/blenlib/intern/storage.c @@ -56,7 +56,7 @@ #include #endif -#if defined(linux) || defined(__CYGWIN32__) || defined(__hpux) +#if defined(linux) || defined(__CYGWIN32__) || defined(__hpux) || defined(__GNU__) || defined(__GLIBC__) #include #endif @@ -191,7 +191,7 @@ double BLI_diskfree(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 --