Fixes for compiling under freebsd

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@562 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2009-01-28 22:12:28 +00:00
parent a15de98314
commit 91d4dc20b9
10 changed files with 18 additions and 14 deletions

View File

@@ -19,7 +19,7 @@
#if(!defined(__WIN32__))&&(!defined(__amigaos4__))&&(!defined(__AROS__))&&(!defined(__MORPHOS__))
// We don't use autoconf and all that in grafx2, so let's do the config here ...
#ifdef __macosx__ // MacOS X is POSIX compliant
#if defined(__macosx__)||defined(__FreeBSD__) // MacOS X is POSIX compliant
#define MOUNTED_GETMNTINFO
#elif defined(__BEOS__) || defined(__HAIKU__)
#define MOUNTED_FS_STAT_DEV
@@ -444,7 +444,7 @@ read_file_system_list (bool need_fs_type)
#ifdef MOUNTED_GETMNTINFO /* 4.4BSD. */
#ifdef __macosx__
#if defined(__macosx__) || defined(__FreeBSD__)
{
struct statfs *fsp;
int entries;