aboutsummaryrefslogtreecommitdiffstats
path: root/main/postfix/no-glibc.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-10-14 06:26:55 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-14 06:26:55 +0000
commit1f4cc3c6082aec393b1f7019fedc582d366f57c1 (patch)
tree86b7e00f360746804327877c0d9144141f9e7db0 /main/postfix/no-glibc.patch
parent11796ca36e2bab9a5e42c8b4bfd91a1e83719f1c (diff)
downloadaports-1f4cc3c6082aec393b1f7019fedc582d366f57c1.tar.bz2
aports-1f4cc3c6082aec393b1f7019fedc582d366f57c1.tar.xz
main/postfix: fix file descriptor passing
we need check if __GLIBC__ is defined at all before comparing verision ref #3423
Diffstat (limited to 'main/postfix/no-glibc.patch')
-rw-r--r--main/postfix/no-glibc.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/main/postfix/no-glibc.patch b/main/postfix/no-glibc.patch
new file mode 100644
index 0000000000..2e5e833303
--- /dev/null
+++ b/main/postfix/no-glibc.patch
@@ -0,0 +1,18 @@
+Check if we have __GLIBC__ defined at all before checking version
+http://bugs.alpinelinux.org/issues/3423
+
+This fixes the following when compiled with musl libc:
+warning: unix_send_fd: your system has no support for file descriptor passing
+
+
+--- ./src/util/sys_defs.h.orig
++++ ./src/util/sys_defs.h
+@@ -810,7 +810,7 @@
+ # define KERNEL_VERSION(a,b,c) (LINUX_VERSION_CODE + 1)
+ #endif
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0)) \
+- || (__GLIBC__ < 2)
++ || (defined(__GLIBC__) && (__GLIBC__ < 2))
+ # define CANT_USE_SEND_RECV_MSG
+ # define DEF_SMTP_CACHE_DEMAND 0
+ #else