diff options
Diffstat (limited to 'meta-networking/recipes-daemons/postfix/files')
-rw-r--r-- | meta-networking/recipes-daemons/postfix/files/0001-Check-for-glibc-before-setting-CANT_USE_SEND_RECV_MS.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/postfix/files/0001-Check-for-glibc-before-setting-CANT_USE_SEND_RECV_MS.patch b/meta-networking/recipes-daemons/postfix/files/0001-Check-for-glibc-before-setting-CANT_USE_SEND_RECV_MS.patch new file mode 100644 index 000000000..6b86e3925 --- /dev/null +++ b/meta-networking/recipes-daemons/postfix/files/0001-Check-for-glibc-before-setting-CANT_USE_SEND_RECV_MS.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From 63619acf25151d4dade6d65732722ec4a710a5ac Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 15 Jul 2017 09:54:25 -0700 | ||
4 | Subject: [PATCH] Check for glibc before setting CANT_USE_SEND_RECV_MSG | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- | ||
8 | src/util/sys_defs.h | 2 +- | ||
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
10 | |||
11 | diff --git a/src/util/sys_defs.h b/src/util/sys_defs.h | ||
12 | index f720e2a..7314c63 100644 | ||
13 | --- a/src/util/sys_defs.h | ||
14 | +++ b/src/util/sys_defs.h | ||
15 | @@ -813,7 +813,7 @@ extern int initgroups(const char *, int); | ||
16 | #define KERNEL_VERSION(a,b,c) (LINUX_VERSION_CODE + 1) | ||
17 | #endif | ||
18 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0)) \ | ||
19 | - || (__GLIBC__ < 2) | ||
20 | + || (defined(__GLIBC__) && (__GLIBC__ < 2)) | ||
21 | #define CANT_USE_SEND_RECV_MSG | ||
22 | #define DEF_SMTP_CACHE_DEMAND 0 | ||
23 | #else | ||
24 | -- | ||
25 | 2.13.3 | ||
26 | |||