diff options
author | Steven Chamberlain <steven@pyro.eu.org> | 2018-05-12 11:41:56 +1000 |
---|---|---|
committer | Damien Zammit <damien@zamaudio.com> | 2018-05-12 11:42:55 +1000 |
commit | 9deb88c0596bc3b34cbcd953f57c62e807777775 (patch) | |
tree | 2c4f12df8e6a3706dd3e0c1ddf0651ae34d1de46 | |
parent | e70a6d2719fc95dc5220e063ae9eb633adb3bede (diff) |
Support GNU platforms other than Linuxnonlinux
Treat all glibc-based platforms as DISTRHO_OS_LINUX, even those not
based on Linux such as GNU/kFreeBSD or GNU/Hurd.
Also, wrap ifdefs around sa_restorer which really is specific to (some)
Linux platforms. (A feature-test macro would be better, though it is
obsolete and maybe should be removed altogether...)
-rw-r--r-- | distrho/src/DistrhoDefines.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/distrho/src/DistrhoDefines.h b/distrho/src/DistrhoDefines.h index 16c06944..58dd442b 100644 --- a/distrho/src/DistrhoDefines.h +++ b/distrho/src/DistrhoDefines.h @@ -37,7 +37,7 @@ # define DISTRHO_DLL_EXTENSION "dylib" # elif defined(__HAIKU__) # define DISTRHO_OS_HAIKU 1 -# elif defined(__linux__) || defined(__linux) +# elif defined(__linux__) || defined(__linux) || defined(__GLIBC__) # define DISTRHO_OS_LINUX 1 # endif #endif |