[gimp] Bug 793393 - gimputils.c compilation error under Win32.



commit 1282a95e6b05044ffbc1f6b7a0290d5eedd4429c
Author: Jehan <jehan girinstud io>
Date:   Mon Feb 12 18:08:03 2018 +0100

    Bug 793393 - gimputils.c compilation error under Win32.
    
    The header sys/wait.h is not for Win32.

 libgimpbase/gimputils.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libgimpbase/gimputils.c b/libgimpbase/gimputils.c
index 1f2356f..77a5312 100644
--- a/libgimpbase/gimputils.c
+++ b/libgimpbase/gimputils.c
@@ -25,8 +25,6 @@
 #include <string.h>
 #include <stdio.h>
 
-#include <sys/wait.h>
-
 #ifdef PLATFORM_OSX
 #include <AppKit/AppKit.h>
 #endif
@@ -47,7 +45,10 @@
 #undef DATADIR
 #include <windows.h>
 #include <shlobj.h>
-#endif
+#else /* G_OS_WIN32 */
+/* For waitpid() */
+#include <sys/wait.h>
+#endif /* G_OS_WIN32 */
 
 #include "gimpbasetypes.h"
 #include "gimputils.h"


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