[grilo/master.msvc: 5/13] grl-net-wc.c: Include process.h on Windows



commit 681238f60b36fc5a8580b7d6f6ca17135fc88643
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Apr 22 12:29:13 2020 +0800

    grl-net-wc.c: Include process.h on Windows
    
    unistd.h may not be available on Windows, but process.h is, and it is needed
    for getpid().

 libs/net/grl-net-wc.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/libs/net/grl-net-wc.c b/libs/net/grl-net-wc.c
index 9bd4922..be3cecb 100644
--- a/libs/net/grl-net-wc.c
+++ b/libs/net/grl-net-wc.c
@@ -49,6 +49,10 @@
 #include <libsoup/soup.h>
 #include <string.h>
 
+#ifdef G_OS_WIN32
+#include <process.h>
+#endif
+
 #include <grilo.h>
 #include "grl-net-wc.h"
 #include "grl-net-mock-private.h"


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