Browse Source

Really fix FreeBSD build

pull/6/head
falkTX 9 years ago
parent
commit
32730ebfe2
2 changed files with 6 additions and 3 deletions
  1. +2
    -2
      distrho/extra/Thread.hpp
  2. +4
    -1
      distrho/src/DistrhoDefines.h

+ 2
- 2
distrho/extra/Thread.hpp View File

@@ -21,7 +21,7 @@
#include "Sleep.hpp" #include "Sleep.hpp"
#include "String.hpp" #include "String.hpp"


#ifdef DISTRHO_OS_LINUX
#ifdef DISTRHO_OS_LINUX_FULL
# include <sys/prctl.h> # include <sys/prctl.h>
#endif #endif


@@ -199,7 +199,7 @@ public:
{ {
DISTRHO_SAFE_ASSERT_RETURN(name != nullptr && name[0] != '\0',); 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); prctl(PR_SET_NAME, name, 0, 0, 0);
#endif #endif
#if defined(__GLIBC__) && (__GLIBC__ * 1000 + __GLIBC_MINOR__) >= 2012 #if defined(__GLIBC__) && (__GLIBC__ * 1000 + __GLIBC_MINOR__) >= 2012


+ 4
- 1
distrho/src/DistrhoDefines.h View File

@@ -37,7 +37,10 @@
# define DISTRHO_DLL_EXTENSION "dylib" # define DISTRHO_DLL_EXTENSION "dylib"
# elif defined(__HAIKU__) # elif defined(__HAIKU__)
# define DISTRHO_OS_HAIKU 1 # 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 # define DISTRHO_OS_LINUX 1
# endif # endif
#endif #endif


Loading…
Cancel
Save