[glib: 6/11] tests W32: include process.h for getpid()



commit d2c9543f2e674d20e72144122b7409c31f08c7e0
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]