]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/postfix-3.6.2-glibc-234-build-fix.patch
hdparm: Fix build with glibc 2.36
[people/pmueller/ipfire-2.x.git] / src / patches / postfix-3.6.2-glibc-234-build-fix.patch
1 diff --git a/src/util/sys_defs.h b/src/util/sys_defs.h
2 index 99bec9b..95c78ec 100644
3 --- a/src/util/sys_defs.h
4 +++ b/src/util/sys_defs.h
5 @@ -802,6 +803,9 @@ extern int initgroups(const char *, int);
6 #define _PATH_PROCNET_IFINET6 "/proc/net/if_inet6"
7 #endif
8 #endif
9 +#if HAVE_GLIBC_API_VERSION_SUPPORT(2, 34)
10 +#define HAS_CLOSEFROM
11 +#endif
12 #include <linux/version.h>
13 #if !defined(KERNEL_VERSION)
14 #define KERNEL_VERSION(a,b,c) (LINUX_VERSION_CODE + 1)