SHARE
TWEET

Untitled

a guest Dec 23rd, 2016 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 1dbf082..27c2b07 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -213,6 +213,10 @@ endif()
  6.  #    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -stdlib=libc++")
  7.  #endif()
  8.  
  9. +if(HAIKU)
  10. +    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
  11. +endif()
  12. +
  13.  
  14.  if(WIN32 AND NOT MSVC)
  15.      if(EXISTS "C:/MinGW/include")
  16. diff --git a/Opcodes/control.c b/Opcodes/control.c
  17. index a14afa8..a2952af 100644
  18. --- a/Opcodes/control.c
  19. +++ b/Opcodes/control.c
  20. @@ -28,7 +28,7 @@
  21.  #include <sys/types.h>
  22.  #include <signal.h>
  23.  
  24. -#if defined(__MACH__)
  25. +#if defined(__MACH__) || defined(__HAIKU__)
  26.  #include <unistd.h>
  27.  #endif
  28.  
  29. diff --git a/Opcodes/urandom.c b/Opcodes/urandom.c
  30. index 8bc6dc7..f203065 100644
  31. --- a/Opcodes/urandom.c
  32. +++ b/Opcodes/urandom.c
  33. @@ -21,6 +21,8 @@
  34.      02111-1307 USA
  35.  */
  36.  
  37. +#include <fcntl.h>
  38. +
  39.  #include "csdl.h"
  40.  //#include <ieee754.h>
  41.  
  42. diff --git a/include/csoundCore.h b/include/csoundCore.h
  43. index 048b71a..0e67fbe 100644
  44. --- a/include/csoundCore.h
  45. +++ b/include/csoundCore.h
  46. @@ -71,7 +71,7 @@ extern "C" {
  47.  #include <xlocale.h>
  48.  #endif
  49.  
  50. -#if (defined(__MACH__) || defined(ANDROID) || defined(NACL) || defined(__CYGWIN__))
  51. +#if (defined(__MACH__) || defined(ANDROID) || defined(__HAIKU__) || defined(NACL) || defined(__CYGWIN__))
  52.  #define BARRIER_SERIAL_THREAD (-1)
  53.  typedef struct {
  54.    pthread_mutex_t mut;
  55. @@ -79,7 +79,7 @@ typedef struct {
  56.    unsigned int count, max, iteration;
  57.  } barrier_t;
  58.  
  59. -#ifndef PTHREAD_BARRIER_SERIAL_THREAD
  60. +#if !defined(PTHREAD_BARRIER_SERIAL_THREAD) || defined(__HAIKU__)
  61.  #define pthread_barrier_t barrier_t
  62.  #endif /* PTHREAD_BARRIER_SERIAL_THREAd */
  63.  #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. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top