From 65f803ee203ff37c34001fdd290613d6cb85357d Mon Sep 17 00:00:00 2001 From: Dirk Neukirchen Date: Thu, 13 Aug 2015 18:43:13 +0200 Subject: [PATCH] fdm: fix musl compile musl does not define some macros so define them ourselves Signed-off-by: Dirk Neukirchen --- mail/fdm/patches/010-musl_WAIT_ANY.patch | 13 ++++++++++++ mail/fdm/patches/020-musl_GLOB_BRACE.patch | 22 +++++++++++++++++++++ mail/fdm/patches/030-musl_ACCESSPERMS.patch | 11 +++++++++++ 3 files changed, 46 insertions(+) create mode 100644 mail/fdm/patches/010-musl_WAIT_ANY.patch create mode 100644 mail/fdm/patches/020-musl_GLOB_BRACE.patch create mode 100644 mail/fdm/patches/030-musl_ACCESSPERMS.patch diff --git a/mail/fdm/patches/010-musl_WAIT_ANY.patch b/mail/fdm/patches/010-musl_WAIT_ANY.patch new file mode 100644 index 0000000000..d37bc7f032 --- /dev/null +++ b/mail/fdm/patches/010-musl_WAIT_ANY.patch @@ -0,0 +1,13 @@ +--- a/fdm.c ++++ b/fdm.c +@@ -22,6 +22,10 @@ + #include + #include + ++#ifndef WAIT_ANY ++#define WAIT_ANY (-1) ++#endif ++ + #include + #include + #include diff --git a/mail/fdm/patches/020-musl_GLOB_BRACE.patch b/mail/fdm/patches/020-musl_GLOB_BRACE.patch new file mode 100644 index 0000000000..2b5683d1ff --- /dev/null +++ b/mail/fdm/patches/020-musl_GLOB_BRACE.patch @@ -0,0 +1,22 @@ +--- a/fetch-maildir.c ++++ b/fetch-maildir.c +@@ -31,6 +31,8 @@ + #include "fdm.h" + #include "fetch.h" + ++#define GLOB_BRACE 0 ++ + int fetch_maildir_commit(struct account *, struct mail *); + void fetch_maildir_abort(struct account *); + u_int fetch_maildir_total(struct account *); +--- a/fetch-mbox.c ++++ b/fetch-mbox.c +@@ -32,6 +32,8 @@ + #include "fdm.h" + #include "fetch.h" + ++#define GLOB_BRACE 0 ++ + int fetch_mbox_commit(struct account *, struct mail *); + void fetch_mbox_abort(struct account *); + u_int fetch_mbox_total(struct account *); diff --git a/mail/fdm/patches/030-musl_ACCESSPERMS.patch b/mail/fdm/patches/030-musl_ACCESSPERMS.patch new file mode 100644 index 0000000000..b781871b2e --- /dev/null +++ b/mail/fdm/patches/030-musl_ACCESSPERMS.patch @@ -0,0 +1,11 @@ +--- a/file.c ++++ b/file.c +@@ -26,6 +26,8 @@ + + #include "fdm.h" + ++#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) ++ + int mklock(u_int, const char *); + void rmlock(u_int, const char *); + int lockfd(u_int, int);