mirror of
https://github.com/tmux/tmux.git
synced 2024-12-12 17:38:48 +00:00
Hide warnings due to Apple's stupidity with __dead, reported by Kurtis Rader.
This commit is contained in:
parent
2e931d4994
commit
233d14f4da
4
compat.h
4
compat.h
@ -35,6 +35,10 @@
|
||||
#define __attribute__(a)
|
||||
#endif
|
||||
|
||||
#ifdef BROKEN___DEAD
|
||||
#undef __dead
|
||||
#endif
|
||||
|
||||
#ifndef __unused
|
||||
#define __unused __attribute__ ((__unused__))
|
||||
#endif
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user