[metacity] portability: get WIFEXITED and WEXITSTATUS from sys/wait.h



commit 7b3e8f63eaa055fda49d48178e53b0ad2ae513ce
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Mon Aug 6 20:38:28 2012 +0200

    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

 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 8feb08b..27f3fef 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]