Mercurial > dwindows
diff compat.c @ 433:f225f16bebbd
Compile fixes for MacOS X.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 27 May 2003 21:43:49 +0000 |
parents | 4e3407df0e38 |
children | b559c06a76c2 |
line wrap: on
line diff
--- a/compat.c Tue May 27 21:27:26 2003 +0000 +++ b/compat.c Tue May 27 21:43:49 2003 +0000 @@ -5,8 +5,8 @@ #include <share.h> #endif -#ifdef __UNIX__ -#ifdef __FreeBSD__ +#if defined(__UNIX__) || defined(__MAC__) +#if defined(__FreeBSD__) || defined(__MAC__) #include <sys/param.h> #include <sys/ucred.h> #include <sys/mount.h> @@ -235,7 +235,7 @@ return 0; return (long double)((double)spc*(double)bps*(double)fc); -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__MAC__) struct statfs *fsp; int entries, index = 1; @@ -332,7 +332,7 @@ return 0; return (long double)((double)spc*(double)bps*(double)tc); -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__MAC__) struct statfs *fsp; int entries, index = 1; @@ -426,7 +426,7 @@ if(GetVolumeInformation(buffer, volname, 100, &spc, &bps, &fc, NULL, 0) != 0) return 1; -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__MAC__) struct statfs *fsp; int entries, index = 1; @@ -495,8 +495,8 @@ void API getfsname(int drive, char *buf, int len) { -#ifdef __UNIX__ -#ifdef __FreeBSD__ +#if defined(__UNIX__) || defined(__MAC__) +#if defined(__FreeBSD__) || defined(__MAC__) struct statfs *fsp; int entries, index = 1;