diff --git a/compat.h b/compat.h index 6d2cfee8..03c23172 100644 --- a/compat.h +++ b/compat.h @@ -5,9 +5,19 @@ #include "config.h" #endif +#ifdef __FreeBSD__ +#define __dead __dead2 +#endif /* __FreeBSD__ */ + +#if defined(__linux__) || defined(__CYGWIN__) #ifndef __dead +#ifdef __GNUC__ +#define __dead __attribute__((__noreturn__)) +#else #define __dead #endif +#endif +#endif /* __linux__ || __CYGWIN__ */ #ifndef HAVE_REALLOCARRAY