lib/util: Add signal.h include
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 12 Dec 2021 09:27:42 +0000 (10:27 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 13 Dec 2021 16:22:28 +0000 (16:22 +0000)
Fixes build error with samba-4.15.3 and uClibc:

../../source3/printing/samba-bgqd.c: In function ‘main’:
../../source3/printing/samba-bgqd.c:340:21: error: ‘SIGPIPE’ undeclared (first use in this function); did you mean ‘EPIPE’?
../../source3/printing/samba-bgqd.c:384:14: error: ‘SIGTERM’ undeclared (first use in this function)

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Dec 13 16:22:28 UTC 2021 on sn-devel-184

lib/util/signal.h

index 0663af6ab94ed4deb549d67d5dccfbf2841af9c6..f662ee110d66962b0f08ec343ad0b1d4f2f4c1e6 100644 (file)
@@ -21,6 +21,7 @@
 #ifndef _SAMBA_UTIL_SIGNAL_H_
 #define _SAMBA_UTIL_SIGNAL_H_
 
+#include <signal.h>
 #include <stdbool.h>
 
 /**