1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/mail/ml/files/patch-imap-4-src-osdep-unix-os_bsi.h

31 lines
827 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- ../imap-4/src/osdep/unix/os_bsi.h.orig Mon Mar 30 17:07:22 1998
+++ ../imap-4/src/osdep/unix/os_bsi.h Sat Jun 26 02:13:22 1999
@@ -34,13 +34,25 @@
*/
#define MAILFILE "/var/mail/%s"
-#define ACTIVEFILE "/usr/lib/news/active"
-#define NEWSSPOOL "/usr/spool/news"
+#define ACTIVEFILE "/usr/local/news/db/active" /* inn-stable port */
+#define NEWSSPOOL "/var/spool/news" /* inn-stable port */
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
+
+/*
+ * From ports/mail/imap-uw:
+ * FreeBSD v3.x and onward whines about <sys/dir.h> being obsolete, so switch
+ * to POSIX semantics.
+ */
+#if __FreeBSD__ >= 3
+#include <dirent.h>
+#define direct dirent
+#else
#include <sys/dir.h>
+#endif
+
#include <sys/uio.h> /* needed for writev() prototypes */
#include <syslog.h>
#include <sys/file.h>