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.
This commit is contained in:
parent
349ae498db
commit
78f75f4c1c
6 changed files with 131 additions and 0 deletions
12
mail/postfix/patches/patch-bl
Normal file
12
mail/postfix/patches/patch-bl
Normal file
|
@ -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
|
14
mail/postfix/patches/patch-bm
Normal file
14
mail/postfix/patches/patch-bm
Normal file
|
@ -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); }
|
31
mail/postfix/patches/patch-bn
Normal file
31
mail/postfix/patches/patch-bn
Normal file
|
@ -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);
|
31
mail/postfix/patches/patch-bo
Normal file
31
mail/postfix/patches/patch-bo
Normal file
|
@ -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);
|
31
mail/postfix/patches/patch-bp
Normal file
31
mail/postfix/patches/patch-bp
Normal file
|
@ -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);
|
12
mail/postfix/patches/patch-bq
Normal file
12
mail/postfix/patches/patch-bq
Normal file
|
@ -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. */
|
||||
|
Loading…
Reference in a new issue