summaryrefslogtreecommitdiff
path: root/mail/postfix/patches
diff options
context:
space:
mode:
authorthorpej <thorpej@pkgsrc.org>1999-08-18 23:30:26 +0000
committerthorpej <thorpej@pkgsrc.org>1999-08-18 23:30:26 +0000
commit78f75f4c1c22950a74f9773cb20da33f1adf6058 (patch)
treefd935f190dc9ceee56c6011cb32404a8912416b4 /mail/postfix/patches
parent349ae498db37d2dd27d8563793fd0220212ccbd8 (diff)
downloadpkgsrc-78f75f4c1c22950a74f9773cb20da33f1adf6058.tar.gz
Make this build (and work!) on LP64 systems.
I know I sent these to Weitse the first time I built on an Alpha, but they apparently never made it into the distribution. Oh well.
Diffstat (limited to 'mail/postfix/patches')
-rw-r--r--mail/postfix/patches/patch-bl12
-rw-r--r--mail/postfix/patches/patch-bm14
-rw-r--r--mail/postfix/patches/patch-bn31
-rw-r--r--mail/postfix/patches/patch-bo31
-rw-r--r--mail/postfix/patches/patch-bp31
-rw-r--r--mail/postfix/patches/patch-bq12
6 files changed, 131 insertions, 0 deletions
diff --git a/mail/postfix/patches/patch-bl b/mail/postfix/patches/patch-bl
new file mode 100644
index 00000000000..3eed1990620
--- /dev/null
+++ b/mail/postfix/patches/patch-bl
@@ -0,0 +1,12 @@
+$NetBSD: patch-bl,v 1.1 1999/08/18 23:30:26 thorpej Exp $
+
+--- util/fifo_rdonly_bug.c.orig Tue Aug 17 17:19:00 1999
++++ util/fifo_rdonly_bug.c Tue Aug 17 17:22:45 1999
+@@ -31,6 +31,7 @@
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <fcntl.h>
++#include <string.h>
+
+ #define FIFO_PATH "test-fifo"
+ #define TRIGGER_DELAY 5
diff --git a/mail/postfix/patches/patch-bm b/mail/postfix/patches/patch-bm
new file mode 100644
index 00000000000..9d5c370f582
--- /dev/null
+++ b/mail/postfix/patches/patch-bm
@@ -0,0 +1,14 @@
+$NetBSD: patch-bm,v 1.1 1999/08/18 23:30:26 thorpej Exp $
+
+*** util/fifo_rdwr_bug.c.orig Tue Aug 17 17:24:20 1999
+--- util/fifo_rdwr_bug.c Tue Aug 17 17:24:35 1999
+***************
+*** 32,37 ****
+--- 32,38 ----
+ #include <signal.h>
+ #include <unistd.h>
+ #include <stdlib.h>
++ #include <string.h>
+
+ #define FIFO_PATH "test-fifo"
+ #define perrorexit(s) { perror(s); exit(1); }
diff --git a/mail/postfix/patches/patch-bn b/mail/postfix/patches/patch-bn
new file mode 100644
index 00000000000..41a9f54a4a7
--- /dev/null
+++ b/mail/postfix/patches/patch-bn
@@ -0,0 +1,31 @@
+$NetBSD: patch-bn,v 1.1 1999/08/18 23:30:26 thorpej Exp $
+
+--- master/multi_server.c.orig Tue Aug 17 17:32:22 1999
++++ master/multi_server.c Tue Aug 17 17:34:32 1999
+@@ -270,7 +270,7 @@
+
+ static void multi_server_accept_local(int unused_event, char *context)
+ {
+- int listen_fd = (int) context;
++ int listen_fd = (int) (long) context;
+ int time_left = -1;
+ int fd;
+
+@@ -310,7 +310,7 @@
+
+ static void multi_server_accept_inet(int unused_event, char *context)
+ {
+- int listen_fd = (int) context;
++ int listen_fd = (int) (long) context;
+ int time_left = -1;
+ int fd;
+
+@@ -580,7 +580,7 @@
+ if (var_idle_limit > 0)
+ event_request_timer(multi_server_timeout, (char *) 0, var_idle_limit);
+ for (fd = MASTER_LISTEN_FD; fd < MASTER_LISTEN_FD + socket_count; fd++) {
+- event_enable_read(fd, multi_server_accept, (char *) fd);
++ event_enable_read(fd, multi_server_accept, (char *) (long) fd);
+ close_on_exec(fd, CLOSE_ON_EXEC);
+ }
+ event_enable_read(MASTER_STATUS_FD, multi_server_abort, (char *) 0);
diff --git a/mail/postfix/patches/patch-bo b/mail/postfix/patches/patch-bo
new file mode 100644
index 00000000000..2bd1414806b
--- /dev/null
+++ b/mail/postfix/patches/patch-bo
@@ -0,0 +1,31 @@
+$NetBSD: patch-bo,v 1.1 1999/08/18 23:30:26 thorpej Exp $
+
+--- master/single_server.c.orig Tue Aug 17 17:36:40 1999
++++ master/single_server.c Tue Aug 17 17:37:06 1999
+@@ -241,7 +241,7 @@
+
+ static void single_server_accept_local(int unused_event, char *context)
+ {
+- int listen_fd = (int) context;
++ int listen_fd = (int) (long) context;
+ int time_left = -1;
+ int fd;
+
+@@ -280,7 +280,7 @@
+
+ static void single_server_accept_inet(int unused_event, char *context)
+ {
+- int listen_fd = (int) context;
++ int listen_fd = (int) (long) context;
+ int time_left = -1;
+ int fd;
+
+@@ -549,7 +549,7 @@
+ if (var_idle_limit > 0)
+ event_request_timer(single_server_timeout, (char *) 0, var_idle_limit);
+ for (fd = MASTER_LISTEN_FD; fd < MASTER_LISTEN_FD + socket_count; fd++) {
+- event_enable_read(fd, single_server_accept, (char *) fd);
++ event_enable_read(fd, single_server_accept, (char *) (long) fd);
+ close_on_exec(fd, CLOSE_ON_EXEC);
+ }
+ event_enable_read(MASTER_STATUS_FD, single_server_abort, (char *) 0);
diff --git a/mail/postfix/patches/patch-bp b/mail/postfix/patches/patch-bp
new file mode 100644
index 00000000000..1b5d050cb29
--- /dev/null
+++ b/mail/postfix/patches/patch-bp
@@ -0,0 +1,31 @@
+$NetBSD: patch-bp,v 1.1 1999/08/18 23:30:26 thorpej Exp $
+
+--- master/trigger_server.c.orig Tue Aug 17 17:38:48 1999
++++ master/trigger_server.c Tue Aug 17 17:39:14 1999
+@@ -240,7 +240,7 @@
+ static void trigger_server_accept_fifo(int unused_event, char *context)
+ {
+ char *myname = "trigger_server_accept_fifo";
+- int listen_fd = (int) context;
++ int listen_fd = (int) (long) context;
+
+ if (trigger_server_lock != 0
+ && myflock(vstream_fileno(trigger_server_lock), MYFLOCK_NONE) < 0)
+@@ -269,7 +269,7 @@
+ static void trigger_server_accept_local(int unused_event, char *context)
+ {
+ char *myname = "trigger_server_accept_local";
+- int listen_fd = (int) context;
++ int listen_fd = (int) (long) context;
+ int time_left = 0;
+ int fd;
+
+@@ -561,7 +561,7 @@
+ if (var_idle_limit > 0)
+ event_request_timer(trigger_server_timeout, (char *) 0, var_idle_limit);
+ for (fd = MASTER_LISTEN_FD; fd < MASTER_LISTEN_FD + socket_count; fd++) {
+- event_enable_read(fd, trigger_server_accept, (char *) fd);
++ event_enable_read(fd, trigger_server_accept, (char *) (long) fd);
+ close_on_exec(fd, CLOSE_ON_EXEC);
+ }
+ event_enable_read(MASTER_STATUS_FD, trigger_server_abort, (char *) 0);
diff --git a/mail/postfix/patches/patch-bq b/mail/postfix/patches/patch-bq
new file mode 100644
index 00000000000..2d5045f9aaa
--- /dev/null
+++ b/mail/postfix/patches/patch-bq
@@ -0,0 +1,12 @@
+$NetBSD: patch-bq,v 1.1 1999/08/18 23:30:26 thorpej Exp $
+
+--- local/file.c.orig Tue Aug 17 19:02:28 1999
++++ local/file.c Tue Aug 17 19:02:50 1999
+@@ -50,6 +50,7 @@
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <errno.h>
++#include <string.h>
+
+ /* Utility library. */
+