[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BSD 4.4 patch to zmailer




  To get zmailer 2.99.3 to build on my FreeBSD 2.0 (4.4BSD based), I had to
make a few changes to smtpserver.c.

  Comments?  

--- 2.99.3-orig/smtpserver/smtpserver.c Fri Dec 23 06:41:57 1994
+++ 2.99.3-bsd/smtpserver/smtpserver.c  Fri Dec 30 14:09:58 1994
@@ -40,6 +40,7 @@
 #include <varargs.h>
 #include <mail.h>
 #include <sys/time.h>
+#include <sys/param.h>
 #ifdef FCNTL_H
 # include FCNTL_H
 #endif
@@ -65,16 +66,16 @@
 # define FSTATFS statfs        /* Existence of this means (usually) SYSV
code */
 # define STATFSTYPE struct statfs
 #else /* !ULTRIX */
-#ifdef bsdi
+#ifdef BSD4_4
 # include <sys/types.h>
 # include <sys/mount.h>
-/* # define FSTATFS fstatfs */ /* nonexistence of this means BSD code */
+/* # define FSTATFS fstatfs */  
 # define STATFSTYPE struct statfs
-#else /* !bsdi */
+#else /* !BSD4_4 */
 # include <sys/vfs.h>
 /* # define FSTATFS fstatfs */ /* nonexistence of this means BSD code */
 # define STATFSTYPE struct statfs
-#endif /* !bsdi */
+#endif /* !BSD_44 */
 #endif /* !ULTRIX */
 #endif /* !SYSV */
 #endif /* !USE_STATVFS */
@@ -839,7 +840,7 @@
		type(452, (char *)NULL);
		return;
	}
-#if defined(__linux__)
+#if defined(__linux__) || (defined(BSD4_4) && !defined(bsdi))
	if ((rc = fstatfs(fileno(mfp), &statbuf)) == 0) {
	  availspace = statbuf.f_bavail * statbuf.f_bsize;
	}

Tom Samplonius

---
UNIServe Online
tom@haven.uniserve.com
http://www.uniserve.com