0004-lib-util-Add-signal.h-include.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From d1732a79dbf30c41802245909d0250ebe2b9d92e Mon Sep 17 00:00:00 2001
  2. From: Bernd Kuhls <bernd.kuhls@t-online.de>
  3. Date: Sun, 12 Dec 2021 10:27:42 +0100
  4. Subject: [PATCH] lib/util: Add signal.h include
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Fixes build error with samba-4.15.3 and uClibc:
  9. ../../source3/printing/samba-bgqd.c: In function ‘main’:
  10. ../../source3/printing/samba-bgqd.c:340:21: error: ‘SIGPIPE’ undeclared (first use in this function); did you mean ‘EPIPE’?
  11. ../../source3/printing/samba-bgqd.c:384:14: error: ‘SIGTERM’ undeclared (first use in this function)
  12. Patch sent upstream:
  13. https://gitlab.com/samba-team/samba/-/merge_requests/2296
  14. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  15. ---
  16. lib/util/signal.h | 1 +
  17. 1 file changed, 1 insertion(+)
  18. diff --git a/lib/util/signal.h b/lib/util/signal.h
  19. index 0663af6ab94..f662ee110d6 100644
  20. --- a/lib/util/signal.h
  21. +++ b/lib/util/signal.h
  22. @@ -21,6 +21,7 @@
  23. #ifndef _SAMBA_UTIL_SIGNAL_H_
  24. #define _SAMBA_UTIL_SIGNAL_H_
  25. +#include <signal.h>
  26. #include <stdbool.h>
  27. /**
  28. --
  29. 2.30.2