mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
postfix: Fix FTBFS with glibc 2.34
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
9c7de6603f
commit
8d02d167a6
14
src/patches/postfix-3.6.2-glibc-234-build-fix.patch
Normal file
14
src/patches/postfix-3.6.2-glibc-234-build-fix.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
diff --git a/src/util/sys_defs.h b/src/util/sys_defs.h
|
||||
index 99bec9b..95c78ec 100644
|
||||
--- a/src/util/sys_defs.h
|
||||
+++ b/src/util/sys_defs.h
|
||||
@@ -802,6 +803,9 @@ extern int initgroups(const char *, int);
|
||||
#define _PATH_PROCNET_IFINET6 "/proc/net/if_inet6"
|
||||
#endif
|
||||
#endif
|
||||
+#if HAVE_GLIBC_API_VERSION_SUPPORT(2, 34)
|
||||
+#define HAS_CLOSEFROM
|
||||
+#endif
|
||||
#include <linux/version.h>
|
||||
#if !defined(KERNEL_VERSION)
|
||||
#define KERNEL_VERSION(a,b,c) (LINUX_VERSION_CODE + 1)
|
||||
Reference in New Issue
Block a user