2022-09-06 23:13:13 +02:00
|
|
|
diff --git a/src/error.c b/src/error.c
|
2024-09-03 19:04:23 +00:00
|
|
|
index 055452e..0ce530a 100644
|
2022-09-06 23:13:13 +02:00
|
|
|
--- a/src/error.c
|
|
|
|
+++ b/src/error.c
|
|
|
|
@@ -32,7 +32,11 @@ Author: Ralph Mor, X Consortium
|
|
|
|
#include <X11/ICE/ICElib.h>
|
|
|
|
#include "ICElibint.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
+#ifdef HAVE_UNISTD_H
|
|
|
|
#include <unistd.h>
|
|
|
|
+#elif _MSC_VER
|
|
|
|
+#include <process.h>
|
|
|
|
+#endif
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
void
|
|
|
|
diff --git a/src/iceauth.c b/src/iceauth.c
|
2024-09-03 19:04:23 +00:00
|
|
|
index 5a4d400..4549f0e 100644
|
2022-09-06 23:13:13 +02:00
|
|
|
--- a/src/iceauth.c
|
|
|
|
+++ b/src/iceauth.c
|
2024-09-03 19:04:23 +00:00
|
|
|
@@ -39,7 +39,12 @@ Author: Ralph Mor, X Consortium
|
|
|
|
#include <stdlib.h> /* for arc4random_buf() */
|
2022-09-06 23:13:13 +02:00
|
|
|
#endif
|
2024-09-03 19:04:23 +00:00
|
|
|
|
2022-09-06 23:13:13 +02:00
|
|
|
+#ifdef HAVE_UNISTD_H
|
|
|
|
#include <unistd.h>
|
|
|
|
+#elif _MSC_VER
|
|
|
|
+#include <process.h>
|
|
|
|
+#define ITIMER_REAL
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
static int was_called_state;
|
|
|
|
|