user-accounts: Include sys/wait.h for W* macros

Otherwise, the compiler may treat WIFEXITED and WEXITSTATUS as implicit
declarations of functions and cause linking to fail.
This commit is contained in:
Ting-Wei Lan 2019-08-29 11:51:48 +08:00 committed by Georges Basile Stavracas Neto
parent 7a805a0848
commit a72a71ab11

View file

@ -23,6 +23,7 @@
#include <math.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <limits.h>
#include <unistd.h>
#include <utmpx.h>