Fixed build on RHEL-9
Related: rhbz#1984045 Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
52d927f509
commit
0f16c009cf
@ -2,13 +2,11 @@ diff --git a/src/util/sys_defs.h b/src/util/sys_defs.h
|
|||||||
index 99bec9b..95c78ec 100644
|
index 99bec9b..95c78ec 100644
|
||||||
--- a/src/util/sys_defs.h
|
--- a/src/util/sys_defs.h
|
||||||
+++ b/src/util/sys_defs.h
|
+++ b/src/util/sys_defs.h
|
||||||
@@ -802,6 +803,9 @@ extern int initgroups(const char *, int);
|
@@ -802,6 +803,7 @@ extern int initgroups(const char *, int);
|
||||||
#define _PATH_PROCNET_IFINET6 "/proc/net/if_inet6"
|
#define _PATH_PROCNET_IFINET6 "/proc/net/if_inet6"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
+#if HAVE_GLIBC_API_VERSION_SUPPORT(2, 34)
|
|
||||||
+#define HAS_CLOSEFROM
|
+#define HAS_CLOSEFROM
|
||||||
+#endif
|
|
||||||
#include <linux/version.h>
|
#include <linux/version.h>
|
||||||
#if !defined(KERNEL_VERSION)
|
#if !defined(KERNEL_VERSION)
|
||||||
#define KERNEL_VERSION(a,b,c) (LINUX_VERSION_CODE + 1)
|
#define KERNEL_VERSION(a,b,c) (LINUX_VERSION_CODE + 1)
|
||||||
|
@ -94,7 +94,9 @@ Patch9: pflogsumm-1.1.5-datecalc.patch
|
|||||||
# rhbz#1384871, sent upstream
|
# rhbz#1384871, sent upstream
|
||||||
Patch10: pflogsumm-1.1.5-ipv6-warnings-fix.patch
|
Patch10: pflogsumm-1.1.5-ipv6-warnings-fix.patch
|
||||||
Patch11: postfix-3.4.4-chroot-example-fix.patch
|
Patch11: postfix-3.4.4-chroot-example-fix.patch
|
||||||
# upstream patch
|
# unconditional glibc-2.34 API assumption, because it seems
|
||||||
|
# in RHEL-9 this feature was also backported to 2.33,
|
||||||
|
# upstream uses conditional check for 2.34 API
|
||||||
Patch12: postfix-3.5.9-glibc-234-build-fix.patch
|
Patch12: postfix-3.5.9-glibc-234-build-fix.patch
|
||||||
|
|
||||||
# Optional patches - set the appropriate environment variables to include
|
# Optional patches - set the appropriate environment variables to include
|
||||||
|
Loading…
Reference in New Issue
Block a user