summaryrefslogtreecommitdiff
path: root/mail/ezmlm/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-02-26 11:26:02 +0000
committerjoerg <joerg@pkgsrc.org>2013-02-26 11:26:02 +0000
commitb628a06c8a20516588bbfbafd1e4728f17db7af7 (patch)
treee8d70d3a58faf5a0fd8e38a01dfdf7d83cf496d5 /mail/ezmlm/patches
parentb2340f845187812864872e466eeed11fb8cbca46 (diff)
downloadpkgsrc-b628a06c8a20516588bbfbafd1e4728f17db7af7.tar.gz
Add some prototypes, missing headers and redefine log() to not conflict
with libm.
Diffstat (limited to 'mail/ezmlm/patches')
-rw-r--r--mail/ezmlm/patches/patch-ezmlm-manage.c23
-rw-r--r--mail/ezmlm/patches/patch-ezmlm-return.c12
-rw-r--r--mail/ezmlm/patches/patch-log.c15
-rw-r--r--mail/ezmlm/patches/patch-log.h13
-rw-r--r--mail/ezmlm/patches/patch-readwrite.h13
-rw-r--r--mail/ezmlm/patches/patch-stralloc.h14
6 files changed, 90 insertions, 0 deletions
diff --git a/mail/ezmlm/patches/patch-ezmlm-manage.c b/mail/ezmlm/patches/patch-ezmlm-manage.c
new file mode 100644
index 00000000000..9aa754c7081
--- /dev/null
+++ b/mail/ezmlm/patches/patch-ezmlm-manage.c
@@ -0,0 +1,23 @@
+$NetBSD: patch-ezmlm-manage.c,v 1.1 2013/02/26 11:26:03 joerg Exp $
+
+--- ezmlm-manage.c.orig 2013-02-25 16:48:08.000000000 +0000
++++ ezmlm-manage.c
+@@ -22,6 +22,7 @@
+ #include "fmt.h"
+ #include "subscribe.h"
+ #include "cookie.h"
++#include "log.h"
+
+ #define FATAL "ezmlm-manage: fatal: "
+ void die_usage() { strerr_die1x(100,"ezmlm-manage: usage: ezmlm-manage dir"); }
+@@ -129,9 +130,7 @@ char *fn;
+
+ stralloc mydtline = {0};
+
+-void main(argc,argv)
+-int argc;
+-char **argv;
++int main(int argc, char **argv)
+ {
+ char *dir;
+ char *sender;
diff --git a/mail/ezmlm/patches/patch-ezmlm-return.c b/mail/ezmlm/patches/patch-ezmlm-return.c
new file mode 100644
index 00000000000..1d751a127b2
--- /dev/null
+++ b/mail/ezmlm/patches/patch-ezmlm-return.c
@@ -0,0 +1,12 @@
+$NetBSD: patch-ezmlm-return.c,v 1.1 2013/02/26 11:26:03 joerg Exp $
+
+--- ezmlm-return.c.orig 2013-02-25 16:48:52.000000000 +0000
++++ ezmlm-return.c
+@@ -17,6 +17,7 @@
+ #include "cookie.h"
+ #include "subscribe.h"
+ #include "issub.h"
++#include "log.h"
+
+ #define FATAL "ezmlm-return: fatal: "
+ void die_usage() { strerr_die1x(100,"ezmlm-return: usage: ezmlm-return dir"); }
diff --git a/mail/ezmlm/patches/patch-log.c b/mail/ezmlm/patches/patch-log.c
new file mode 100644
index 00000000000..50b66fe1b3a
--- /dev/null
+++ b/mail/ezmlm/patches/patch-log.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-log.c,v 1.1 2013/02/26 11:26:03 joerg Exp $
+
+--- log.c.orig 2013-02-25 16:47:16.000000000 +0000
++++ log.c
+@@ -11,9 +11,7 @@ static char buf[1];
+ static char num[FMT_ULONG];
+ static stralloc line = {0};
+
+-void log(event,addr)
+-char *event;
+-char *addr;
++void log(char *event, char *addr)
+ {
+ char ch;
+ int fd;
diff --git a/mail/ezmlm/patches/patch-log.h b/mail/ezmlm/patches/patch-log.h
new file mode 100644
index 00000000000..ec6d8e919f4
--- /dev/null
+++ b/mail/ezmlm/patches/patch-log.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-log.h,v 1.1 2013/02/26 11:26:03 joerg Exp $
+
+--- log.h.orig 2013-02-25 16:47:13.000000000 +0000
++++ log.h
+@@ -1,6 +1,7 @@
+ #ifndef LOG_H
+ #define LOG_H
+
+-extern void log();
++#define log(x,y) my_log(x,y)
++extern void log(char *, char *);
+
+ #endif
diff --git a/mail/ezmlm/patches/patch-readwrite.h b/mail/ezmlm/patches/patch-readwrite.h
new file mode 100644
index 00000000000..c20e8b68110
--- /dev/null
+++ b/mail/ezmlm/patches/patch-readwrite.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-readwrite.h,v 1.1 2013/02/26 11:26:03 joerg Exp $
+
+--- readwrite.h.orig 2013-02-25 16:49:34.000000000 +0000
++++ readwrite.h
+@@ -1,7 +1,6 @@
+ #ifndef READWRITE_H
+ #define READWRITE_H
+
+-extern int read();
+-extern int write();
++#include <unistd.h>
+
+ #endif
diff --git a/mail/ezmlm/patches/patch-stralloc.h b/mail/ezmlm/patches/patch-stralloc.h
new file mode 100644
index 00000000000..155fe4fda10
--- /dev/null
+++ b/mail/ezmlm/patches/patch-stralloc.h
@@ -0,0 +1,14 @@
+$NetBSD: patch-stralloc.h,v 1.1 2013/02/26 11:26:03 joerg Exp $
+
+--- stralloc.h.orig 2013-02-25 16:49:07.000000000 +0000
++++ stralloc.h
+@@ -1,6 +1,9 @@
+ #ifndef STRALLOC_H
+ #define STRALLOC_H
+
++#include <stdlib.h>
++#include <unistd.h>
++
+ #include "gen_alloc.h"
+
+ GEN_ALLOC_typedef(stralloc,char,s,len,a)