Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame^] | 1 | Include signal.h |
| 2 | |
| 3 | Fixes several signal set related errors: |
| 4 | src/basic/copy.c:92:19: error: implicit declaration of function 'sigemptyset' [-Werror=implicit-function-declaration] |
| 5 | src/basic/copy.c:93:19: error: implicit declaration of function 'sigaddset' [-Werror=implicit-function-declaration] |
| 6 | src/basic/copy.c:93:34: error: 'SIGINT' undeclared (first use in this function) |
| 7 | src/basic/copy.c:95:13: error: implicit declaration of function 'sigtimedwait' [-Werror=implicit-function-declaration] |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | |
| 11 | Signed-off-by: Scott Murray <scott.murray@konsulko.com> |
| 12 | --- |
| 13 | src/basic/copy.c | 1 + |
| 14 | 1 file changed, 1 insertion(+) |
| 15 | |
| 16 | diff --git a/src/basic/copy.c b/src/basic/copy.c |
| 17 | index ca311e021e..3cf7fc1697 100644 |
| 18 | --- a/src/basic/copy.c |
| 19 | +++ b/src/basic/copy.c |
| 20 | @@ -12,6 +12,7 @@ |
| 21 | #include <sys/xattr.h> |
| 22 | #include <time.h> |
| 23 | #include <unistd.h> |
| 24 | +#include <signal.h> |
| 25 | |
| 26 | #include "alloc-util.h" |
| 27 | #include "btrfs-util.h" |