Browse Source

Fix build under haiku

tags/v2.2.0-RC1
falkTX 4 years ago
parent
commit
826dd6f31c
3 changed files with 10 additions and 6 deletions
  1. +1
    -1
      source/tests.old/Makefile
  2. +8
    -4
      source/utils/CarlaProcessUtils.hpp
  3. +1
    -1
      source/utils/CarlaScopeUtils.hpp

+ 1
- 1
source/tests.old/Makefile View File

@@ -21,7 +21,7 @@ BASE_FLAGS += -I. -I../backend -I../includes -I../modules -I../utils
BASE_FLAGS += -Wcast-align -Wmissing-declarations
# BASE_FLAGS += -Wcast-qual -Wconversion -Wsign-conversion -Wundef
BASE_FLAGS += -Wformat -Wformat-security -Wredundant-decls -Wshadow -Wstrict-overflow -fstrict-overflow -Wwrite-strings
BASE_FLAGS += -Wpointer-arith -Wabi -Winit-self -Wuninitialized -Wunused-parameter
BASE_FLAGS += -Wpointer-arith -Wabi=2 -Winit-self -Wuninitialized -Wunused-parameter
# -Wfloat-equal

LINK_FLAGS =


+ 8
- 4
source/utils/CarlaProcessUtils.hpp View File

@@ -20,15 +20,19 @@

#include "CarlaUtils.hpp"

#ifdef CARLA_OS_LINUX
# include <sys/prctl.h>
#endif

#ifdef CARLA_OS_HAIKU
typedef __sighandler_t sig_t;
#endif

#ifndef CARLA_OS_WIN
# include <csignal>
# include <csetjmp>
#endif

#ifdef CARLA_OS_LINUX
# include <sys/prctl.h>
#endif

// --------------------------------------------------------------------------------------------------------------------
// process functions



+ 1
- 1
source/utils/CarlaScopeUtils.hpp View File

@@ -25,7 +25,7 @@
#include <algorithm>
#include <clocale>

#if defined(CARLA_PROPER_CPP11_SUPPORT) && ! defined(CARLA_OS_WIN)
#if defined(CARLA_PROPER_CPP11_SUPPORT) && ! defined(CARLA_OS_WIN) && ! defined(CARLA_OS_HAIKU)
# define CARLA_USE_NEWLOCALE
#endif



Loading…
Cancel
Save