[glib/glib-2-58: 26/55] tests W32: include process.h for getpid()



commit c5ad1caa8d4ca8fa3ce5a0e9da5dad32935dc3c4
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date:   Thu Sep 20 05:20:24 2018 +0000

    tests W32: include process.h for getpid()
    
    At least, MinGW has POSIX names. No idea if this works in MSVC.

 tests/mapping-test.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/tests/mapping-test.c b/tests/mapping-test.c
index 3eb90fa48..27c6d8366 100644
--- a/tests/mapping-test.c
+++ b/tests/mapping-test.c
@@ -25,6 +25,9 @@
 #ifdef G_OS_UNIX
 #include <unistd.h>
 #endif
+#ifdef G_OS_WIN32
+#include <process.h>
+#endif
 
 static gchar *dir, *filename, *displayname, *childname;
 


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