diff options
| -rw-r--r-- | compat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compat.h b/compat.h index ad0b45d..89e00ac 100644 --- a/compat.h +++ b/compat.h @@ -10,6 +10,14 @@ #include <stdarg.h> #ifndef __OpenBSD__ +#ifndef __dead +#if defined(__GNUC__) || defined(__clang__) +#define __dead __attribute__((noreturn)) +#else +#define __dead +#endif +#endif + #ifndef HOST_NAME_MAX #ifdef _POSIX_HOST_NAME_MAX #define HOST_NAME_MAX _POSIX_HOST_NAME_MAX |