diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-09-04 08:36:34 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-09-04 08:37:11 +0100 |
commit | 233d14f4da86ee383815b870d547fcd2e39b8c53 (patch) | |
tree | 0ecb4cfdcd9257d7c952725ff12f43260e71e64d | |
parent | 2e931d49940ed91e2d534e497c86838ebaae833d (diff) | |
download | rtmux-233d14f4da86ee383815b870d547fcd2e39b8c53.tar.gz rtmux-233d14f4da86ee383815b870d547fcd2e39b8c53.tar.bz2 rtmux-233d14f4da86ee383815b870d547fcd2e39b8c53.zip |
Hide warnings due to Apple's stupidity with __dead, reported by Kurtis Rader.
-rw-r--r-- | compat.h | 4 | ||||
-rw-r--r-- | configure.ac | 6 |
2 files changed, 10 insertions, 0 deletions
@@ -35,6 +35,10 @@ #define __attribute__(a) #endif +#ifdef BROKEN___DEAD +#undef __dead +#endif + #ifndef __unused #define __unused __attribute__ ((__unused__)) #endif diff --git a/configure.ac b/configure.ac index a62029b3..f89c590b 100644 --- a/configure.ac +++ b/configure.ac @@ -550,6 +550,12 @@ case "$host_os" in AC_MSG_RESULT(darwin) PLATFORM=darwin # + # OS X uses __dead2 instead of __dead, like FreeBSD. But it + # defines __dead away so it needs to be removed before we can + # replace it. + # + AC_DEFINE(BROKEN___DEAD) + # # OS X CMSG_FIRSTHDR is broken, so redefine it with a working # one. daemon works but has some stupid side effects, so use # our internal version which has a workaround. |