xref: /OK3568_Linux_fs/buildroot/package/exim/0004-Fix-uClibc-build.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 68ea4fc7ca53bf010e5ec738ad078452f0eaa639 Mon Sep 17 00:00:00 2001
2From: Bernd Kuhls <bernd.kuhls@t-online.de>
3Date: Tue, 23 Jul 2019 18:48:06 +0200
4Subject: [PATCH] Fix uClibc build
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9structs.h:757:18: error: ‘NS_MAXMSG’ undeclared here (not in a function); did you mean ‘N_MASC’?
10   uschar  answer[NS_MAXMSG];      /* the answer itself */
11
12Patch sent upstream: https://github.com/Exim/exim/pull/70
13
14Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
15---
16 OS/os.h-Linux | 4 ++++
17 1 file changed, 4 insertions(+)
18
19diff --git a/OS/os.h-Linux b/OS/os.h-Linux
20index 63cf9babd..1d82e9bad 100644
21--- a/OS/os.h-Linux
22+++ b/OS/os.h-Linux
23@@ -87,5 +87,9 @@ then change the 0 to 1 in the next block. */
24 # define TCPI_OPT_SYN_DATA 32
25 #endif
26
27+/* Needed for uClibc */
28+#ifndef NS_MAXMSG
29+# define NS_MAXMSG 65535
30+#endif
31
32 /* End */
33--
342.20.1
35
36