diff options
author | Antoine Jacoutot <ajacoutot@gnome.org> | 2012-08-06 20:38:28 +0200 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@gnome.org> | 2012-11-08 17:55:32 +0100 |
commit | 7b3e8f63eaa055fda49d48178e53b0ad2ae513ce (patch) | |
tree | 3004245edf9466f88c24a310f8bc927de91dad93 /src/core/delete.c | |
parent | f94e552ae16f6315da14aa2aa5c82dfe9079eaf3 (diff) | |
download | metacity-7b3e8f63eaa055fda49d48178e53b0ad2ae513ce.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/delete.c b/src/core/delete.c index 8feb08b5..27f3fefd 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, |