diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-11-03 16:06:58 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-11-03 16:06:58 +0000 |
commit | bd4aeefe33e63f613512604e47bfca7b2187697d (patch) | |
tree | adb35b5a9a00ee7ea591ab0c987f70167c23b597 /net-mail/queue-fix/files | |
parent | 48ece6662cbd443015f5a57ae6d8cbdbd69ef37c (diff) |
gentoo resync : 03.11.2019
Diffstat (limited to 'net-mail/queue-fix/files')
-rw-r--r-- | net-mail/queue-fix/files/queue-fix-1.4-errno.patch | 25 | ||||
-rw-r--r-- | net-mail/queue-fix/files/queue-fix-1.4-stdlib.patch | 39 |
2 files changed, 64 insertions, 0 deletions
diff --git a/net-mail/queue-fix/files/queue-fix-1.4-errno.patch b/net-mail/queue-fix/files/queue-fix-1.4-errno.patch new file mode 100644 index 000000000000..d11716bcd731 --- /dev/null +++ b/net-mail/queue-fix/files/queue-fix-1.4-errno.patch @@ -0,0 +1,25 @@ +From d741f95ed6c983919a7ed3080c15064f6fb44e61 Mon Sep 17 00:00:00 2001 +From: Rolf Eike Beer <eike@sf-mail.de> +Date: Sat, 5 Oct 2019 10:39:59 +0200 +Subject: [PATCH 2/2] fix declaration of errno + +--- + error.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/error.h b/error.h +index 01bd3dc..5d98c6b 100644 +--- a/error.h ++++ b/error.h +@@ -1,7 +1,7 @@ + #ifndef ERROR_H + #define ERROR_H + +-extern int errno; ++#include <errno.h> + + extern int error_intr; + extern int error_nomem; +-- +2.16.4 + diff --git a/net-mail/queue-fix/files/queue-fix-1.4-stdlib.patch b/net-mail/queue-fix/files/queue-fix-1.4-stdlib.patch new file mode 100644 index 000000000000..02842a3bfdbd --- /dev/null +++ b/net-mail/queue-fix/files/queue-fix-1.4-stdlib.patch @@ -0,0 +1,39 @@ +From 29dd8f91cf83441aba074dae5af10fe09d095f6b Mon Sep 17 00:00:00 2001 +From: Rolf Eike Beer <eike@sf-mail.de> +Date: Sat, 5 Oct 2019 10:39:21 +0200 +Subject: [PATCH 1/2] include stdlib.h for exit() and malloc() + +--- + alloc.c | 4 ++-- + queue-fix.c | 1 + + 2 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/alloc.c b/alloc.c +index c661453..0ed63b5 100644 +--- a/alloc.c ++++ b/alloc.c +@@ -1,7 +1,7 @@ + #include "alloc.h" + #include "error.h" +-extern char *malloc(); +-extern void free(); ++ ++#include <stdlib.h> + + #define ALIGNMENT 16 /* XXX: assuming that this alignment is enough */ + #define SPACE 4096 /* must be multiple of ALIGNMENT */ +diff --git a/queue-fix.c b/queue-fix.c +index be9b080..b164dfb 100644 +--- a/queue-fix.c ++++ b/queue-fix.c +@@ -9,6 +9,7 @@ + #include <sys/stat.h> + #include <pwd.h> + #include <grp.h> ++#include <stdlib.h> + #include "stralloc.h" + #include "direntry.h" + #include "fmt.h" +-- +2.16.4 + |