[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems building Zmailer
At 08:14 PM 12/22/94 PST, Byron Rakitzis wrote:
BSDI's definition of fsstatfs looks a little strange. I checked the
4.4BSD Programmers Reference Guide, and the fsstatfs is identical to the one
in Linux. Were you perhaps using an older version of BSDI? Does BSDI
define BSD_44 in param.h?
>+ #ifdef bsdi
>+ # include <sys/types.h>
>+ # include <sys/mount.h>
>+ # define FSTATFS fstatfs
>+ # define STATFSTYPE struct statfs
>+ #else /* !bsdi */
> # include <sys/vfs.h>
> /*# define FSTATFS fstatfs*/
> # define STATFSTYPE struct statfs
>+ #endif /* !bsdi */
> #endif /* !ULTRIX */
> #endif /* !SYSV */
> #endif /* !USE_STATVFS */
>***************
>*** 812,826 ****
> availspace = statbuf.f_bavail * statbuf.f_bsize;
> }
> #else
> #if defined(FSTATFS)
> if ((rc = FSTATFS(fileno(mfp), &statbuf)) == 0) {
> availspace = statbuf.f_bavail * statbuf.f_frsize;
> }
>! #else /* no __linux__, no FSTATFS */
> if ((rc = fstatfs(fileno(mfp),
> &statbuf,sizeof statbuf,0)) == 0){
> availspace = statbuf.f_bfree * statbuf.f_bsize;
> }
> #endif
> #endif
> if (availspace < 0)
>--- 819,839 ----
> availspace = statbuf.f_bavail * statbuf.f_bsize;
> }
> #else
>+ #if defined(bsdi)
>+ if ((rc = FSTATFS(fileno(mfp), &statbuf)) == 0) {
>+ availspace = statbuf.f_bfree * statbuf.f_bsize;
>+ }
>+ #else /* no __linux__, no bsdi */
Tom Samplonius
---
UNIServe Online
tom@haven.uniserve.com
http://www.uniserve.com