shithub: libmujs

Download patch

ref: a09d8697dba2aeb41a1628635a87e9d32b8b7bc4
parent: 6871e5b41c07558b17340f985f2af39717d3ba77
author: Tor Andersson <[email protected]>
date: Tue Jan 12 09:54:50 EST 2021

Bug 697702: Add workaround for MSVC not having unistd.h

--- a/main.c
+++ b/main.c
@@ -1,7 +1,11 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#ifdef _MSC_VER
+#include <io.h>
+#else
 #include <unistd.h>
+#endif
 #include <errno.h>
 
 #include "mujs.h"