[gnome-control-center/wip/lantw/fix-user-panel-problem-on-freebsd: 1/4] user-accounts: Include sys/wait.h for W* macros
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/lantw/fix-user-panel-problem-on-freebsd: 1/4] user-accounts: Include sys/wait.h for W* macros
- Date: Thu, 29 Aug 2019 04:13:21 +0000 (UTC)
commit 3b5e95f5f066448f0c9205d231a68404facd0770
Author: Ting-Wei Lan <lantw src gnome org>
Date: Thu Aug 29 11:51:48 2019 +0800
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.
panels/user-accounts/user-utils.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/panels/user-accounts/user-utils.c b/panels/user-accounts/user-utils.c
index 3d4add2f3..dfd3a2949 100644
--- a/panels/user-accounts/user-utils.c
+++ b/panels/user-accounts/user-utils.c
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]