DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 32730ebfe201e2328ca588d9919588221a8c4ecb
parent dc12c0cf30f1206af9b8a2375edf0f6407011d1a
Author: falkTX <falktx@gmail.com>
Date:   Tue, 29 Mar 2016 15:38:11 +0200

Really fix FreeBSD build

Diffstat:
Mdistrho/extra/Thread.hpp | 4++--
Mdistrho/src/DistrhoDefines.h | 5++++-
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/distrho/extra/Thread.hpp b/distrho/extra/Thread.hpp @@ -21,7 +21,7 @@ #include "Sleep.hpp" #include "String.hpp" -#ifdef DISTRHO_OS_LINUX +#ifdef DISTRHO_OS_LINUX_FULL # include <sys/prctl.h> #endif @@ -199,7 +199,7 @@ public: { DISTRHO_SAFE_ASSERT_RETURN(name != nullptr && name[0] != '\0',); -#ifdef DISTRHO_OS_LINUX +#ifdef DISTRHO_OS_LINUX_FULL prctl(PR_SET_NAME, name, 0, 0, 0); #endif #if defined(__GLIBC__) && (__GLIBC__ * 1000 + __GLIBC_MINOR__) >= 2012 diff --git a/distrho/src/DistrhoDefines.h b/distrho/src/DistrhoDefines.h @@ -37,7 +37,10 @@ # define DISTRHO_DLL_EXTENSION "dylib" # elif defined(__HAIKU__) # define DISTRHO_OS_HAIKU 1 -# elif defined(__linux__) || defined(__linux) || defined(__FreeBSD__) || defined(__GNU__) +# elif defined(__linux__) || defined(__linux) +# define DISTRHO_OS_LINUX 1 +# define DISTRHO_OS_LINUX_FULL 1 +# elif defined(__FreeBSD__) || defined(__GNU__) # define DISTRHO_OS_LINUX 1 # endif #endif