commit 36b85cffb80e11bff1f59bc6f2900381b1dd1414 from: Omar Polo date: Sat May 06 09:25:01 2023 UTC add err.h compat commit - 39626f32e6c4cee02bdbedb2dbb02e7bd446e1c0 commit + 36b85cffb80e11bff1f59bc6f2900381b1dd1414 blob - /dev/null blob + 589be9dc6c5c0f98df93c7a4660bb3512a815b57 (mode 644) --- /dev/null +++ msearchd/compat/err.h @@ -0,0 +1,14 @@ +#include "../config.h" + +#ifndef __dead +# define __dead __attribute__((noreturn)) +#endif + +__dead void err(int, const char *, ...) + __attribute__((__format__ (printf, 2, 3))); +__dead void errx(int, const char *, ...) + __attribute__((__format__ (printf, 2, 3))); +void warn(int, const char *, ...) + __attribute__((__format__ (printf, 1, 2))); +void warnx(int, const char *, ...) + __attribute__((__format__ (printf, 1, 2)));