summaryrefslogtreecommitdiff
path: root/src/core/delete.c
diff options
context:
space:
mode:
authorAntoine Jacoutot <[email protected]>2012-08-06 18:38:28 +0000
committerStefano Karapetsas <[email protected]>2014-02-17 11:12:28 +0100
commitfc2a3980ffd50c3e79bfb13dfbfb3990d40eda93 (patch)
treed98b550a526eb84a964e9806ed07b6a61ba84bac /src/core/delete.c
parent6880425e45a4e7856c0b8637bed5b4e6d164b70c (diff)
downloadmarco-fc2a3980ffd50c3e79bfb13dfbfb3990d40eda93.tar.bz2
marco-fc2a3980ffd50c3e79bfb13dfbfb3990d40eda93.tar.xz
portability: get WIFEXITED and WEXITSTATUS from sys/wait.h
WIFEXITED and WEXITSTATUS are normally declared in sys/wait.h on all Unices system. Linux has a definition in stdlib.h as well but this is not portable. https://bugzilla.gnome.org/show_bug.cgi?id=681328
Diffstat (limited to 'src/core/delete.c')
-rw-r--r--src/core/delete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/delete.c b/src/core/delete.c
index b2093898..42360a5a 100644
--- a/src/core/delete.c
+++ b/src/core/delete.c
@@ -32,11 +32,11 @@
#include "workspace.h"
#include <sys/types.h>
+#include <sys/wait.h>
#include <signal.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
-#include <stdlib.h>
#include <stdio.h>
static void meta_window_present_delete_dialog (MetaWindow *window,