Browse Source

Small fixes for Haiku

tags/1.9.8
falkTX 7 years ago
parent
commit
ac2a42aaaa
2 changed files with 6 additions and 1 deletions
  1. +3
    -1
      source/utils/CarlaSemUtils.hpp
  2. +3
    -0
      source/utils/CarlaShmUtils.hpp

+ 3
- 1
source/utils/CarlaSemUtils.hpp View File

@@ -22,7 +22,9 @@

#include <ctime>

#define CARLA_USE_FUTEXES
#ifndef CARLA_OS_HAIKU
# define CARLA_USE_FUTEXES
#endif

#if defined(CARLA_OS_WIN)
# ifdef __WINE__


+ 3
- 0
source/utils/CarlaShmUtils.hpp View File

@@ -27,6 +27,9 @@ struct carla_shm_t { HANDLE map; bool isServer; const char* filename; };
# ifndef __WINE__
# include <cerrno>
# endif
# ifdef CARLA_OS_HAIKU
# define MAP_LOCKED 0x0
# endif
# include <fcntl.h>
# include <sys/mman.h>
struct carla_shm_t { int fd; const char* filename; std::size_t size; };


Loading…
Cancel
Save