diff options
author | Chih-Wei Huang <cwhuang@linux.org.tw> | 2021-06-14 12:21:35 +0800 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2021-06-14 10:10:02 +0200 |
commit | 01960fa85699686763e42eab537100909e8e6607 (patch) | |
tree | 6b5b4b7962d6db054baf397a9ce5808a7e24b0d6 | |
parent | abe805ed6c7f38e48002e575535afd1f673b9bcd (diff) | |
download | alsa-lib-01960fa85699686763e42eab537100909e8e6607.tar.gz |
ucm: include sys/wait.h to fix build on Android
src/ucm/main.c:788:8: error: implicit declaration of function 'WIFSIGNALED' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (WIFSIGNALED(err)) {
^
src/ucm/main.c:790:10: error: implicit declaration of function 'WIFEXITED' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
} if (WIFEXITED(err)) {
^
src/ucm/main.c:791:34: error: implicit declaration of function 'WEXITSTATUS' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (ignore_error == false && WEXITSTATUS(err) != 0) {
Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r-- | src/ucm/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ucm/main.c b/src/ucm/main.c index 42fdaa1d..d4645e4a 100644 --- a/src/ucm/main.c +++ b/src/ucm/main.c @@ -37,6 +37,7 @@ #include <stdarg.h> #include <pthread.h> #include <sys/stat.h> +#include <sys/wait.h> #include <limits.h> /* |