summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2020-04-22 12:29:13 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2020-04-22 12:29:13 +0800
commit681238f60b36fc5a8580b7d6f6ca17135fc88643 (patch)
treeaa68d5e184a267c862e97fee4bab58c114dec36d
parent65254815fc11a5e94b4bb94eb94a2da68fd1584a (diff)
downloadgrilo-681238f60b36fc5a8580b7d6f6ca17135fc88643.tar.gz
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().
-rw-r--r--libs/net/grl-net-wc.c4
1 files changed, 4 insertions, 0 deletions
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"