[PATCH lib/libICE] Include process.h for getpid() on Win32

Jon TURNEY jon.turney at dronecode.org.uk
Thu Mar 19 07:18:25 PDT 2015


Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
 src/error.c   | 3 +++
 src/iceauth.c | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/src/error.c b/src/error.c
index 3e5e5e9..fcb9276 100644
--- a/src/error.c
+++ b/src/error.c
@@ -35,6 +35,9 @@ Author: Ralph Mor, X Consortium
 
 #include <errno.h>
 
+#ifdef _WIN32
+#include <process.h>            /* for getpid() */
+#endif
 
 void
 _IceErrorBadMinor (
diff --git a/src/iceauth.c b/src/iceauth.c
index ef66626..7fa083d 100644
--- a/src/iceauth.c
+++ b/src/iceauth.c
@@ -40,6 +40,10 @@ Author: Ralph Mor, X Consortium
 #include <bsd/stdlib.h>	/* for arc4random_buf() */
 #endif
 
+#ifdef _WIN32
+#include <process.h>
+#endif
+
 static int was_called_state;
 
 /*
-- 
2.3.2



More information about the xorg-devel mailing list