fuse/guestunmount.c: Include <signal.h>
authorRichard W.M. Jones <[email protected]>
Sun, 27 Apr 2025 12:18:15 +0000 (27 13:18 +0100)
committerrwmjones <[email protected]>
Tue, 7 Oct 2025 13:06:46 +0000 (7 14:06 +0100)
On macOS this fails with:

  guestunmount.c:170:5: error: call to undeclared function 'sigaction'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    170 |     sigaction (SIGINT, &sa, NULL);
        |     ^
  1 error generated.

Reported-by: Mohamed Akram
Related: https://github.com/libguestfs/libguestfs/pull/188

fuse/guestunmount.c

index c7152d0..f3f0020 100644 (file)
@@ -32,6 +32,7 @@
 #include <libintl.h>
 #include <poll.h>
 #include <limits.h>
+#include <signal.h>
 #include <sys/types.h>
 #include <sys/wait.h>