0004-Fix-uClibc-build.patch 941 B

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