From 8901f35a79fbfd3f003a95473a2a1589244c466e Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Wed, 13 Feb 2019 20:01:56 +0100
Subject: Import partial patch from previous version


diff --git a/Opcodes/control.c b/Opcodes/control.c
index ef1c881..7de5271 100644
--- a/Opcodes/control.c
+++ b/Opcodes/control.c
@@ -28,7 +28,7 @@
 #include <sys/types.h>
 #include <signal.h>
 
-#if defined(__MACH__)
+#if defined(__MACH__) || defined(__HAIKU__)
 #include <unistd.h>
 #endif
 
diff --git a/Opcodes/urandom.c b/Opcodes/urandom.c
index 2eb56b3..1216657 100644
--- a/Opcodes/urandom.c
+++ b/Opcodes/urandom.c
@@ -21,6 +21,7 @@
     02110-1301 USA
 */
 
+#include <fcntl.h>
 #include "csdl.h"
 //#include <ieee754.h>
 
-- 
2.19.1

