SHARE
TWEET
Untitled
a guest
Dec 23rd, 2016
95
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- diff --git a/CMakeLists.txt b/CMakeLists.txt
- index 1dbf082..27c2b07 100644
- --- a/CMakeLists.txt
- +++ b/CMakeLists.txt
- @@ -213,6 +213,10 @@ endif()
- # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -stdlib=libc++")
- #endif()
- +if(HAIKU)
- + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
- +endif()
- +
- if(WIN32 AND NOT MSVC)
- if(EXISTS "C:/MinGW/include")
- diff --git a/Opcodes/control.c b/Opcodes/control.c
- index a14afa8..a2952af 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 8bc6dc7..f203065 100644
- --- a/Opcodes/urandom.c
- +++ b/Opcodes/urandom.c
- @@ -21,6 +21,8 @@
- 02111-1307 USA
- */
- +#include <fcntl.h>
- +
- #include "csdl.h"
- //#include <ieee754.h>
- diff --git a/include/csoundCore.h b/include/csoundCore.h
- index 048b71a..0e67fbe 100644
- --- a/include/csoundCore.h
- +++ b/include/csoundCore.h
- @@ -71,7 +71,7 @@ extern "C" {
- #include <xlocale.h>
- #endif
- -#if (defined(__MACH__) || defined(ANDROID) || defined(NACL) || defined(__CYGWIN__))
- +#if (defined(__MACH__) || defined(ANDROID) || defined(__HAIKU__) || defined(NACL) || defined(__CYGWIN__))
- #define BARRIER_SERIAL_THREAD (-1)
- typedef struct {
- pthread_mutex_t mut;
- @@ -79,7 +79,7 @@ typedef struct {
- unsigned int count, max, iteration;
- } barrier_t;
- -#ifndef PTHREAD_BARRIER_SERIAL_THREAD
- +#if !defined(PTHREAD_BARRIER_SERIAL_THREAD) || defined(__HAIKU__)
- #define pthread_barrier_t barrier_t
- #endif /* PTHREAD_BARRIER_SERIAL_THREAd */
- #endif /* __MACH__ */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
