[gnome-control-center/wip/lantw/fix-user-panel-problem-on-freebsd: 54/57] user-accounts: Include sys/wait.h for W* macros
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/lantw/fix-user-panel-problem-on-freebsd: 54/57] user-accounts: Include sys/wait.h for W* macros
- Date: Tue, 10 Sep 2019 23:33:10 +0000 (UTC)
commit a72a71ab111c841f9af9bc5f072e215bc46c5ba3
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]