$NetBSD: patch-ac,v 1.1.1.1 2010/05/05 16:04:39 hfath Exp $ --- lib/support.h.orig 2006-02-27 10:03:16.000000000 +0000 +++ lib/support.h @@ -36,6 +36,20 @@ #include +#if !defined( __dead2 ) +/* XXX Add other OSes which support __attribute__((__noreturn__)) */ +#if defined( __NetBSD__) +#define __dead2 __dead +#else +#define __dead2 +#endif +#endif + +#if !defined( __printflike ) +/* Punt; everybody comes up with their own k001 macros for gcc extensions */ +#define __printflike(foo, bar) +#endif + #ifndef HAVE_ERR_H void err(int, const char *, ...) __printflike(2, 3) __dead2; void errx(int, const char *, ...) __printflike(2, 3) __dead2;