X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=libopenbsd%2Fopenbsd.h;h=da420de7fdd63832973f891cc053ab2cd706b178;hb=5dc1cdecb149196c944c3a0983051eeae6c2b3a0;hp=793d9bf39363668845867b3cd35e827993e8eea4;hpb=bf8b7becf2167e13a5b43d8f61b7e16913de2ead;p=opendoas.git diff --git a/libopenbsd/openbsd.h b/libopenbsd/openbsd.h index 793d9bf..da420de 100644 --- a/libopenbsd/openbsd.h +++ b/libopenbsd/openbsd.h @@ -4,6 +4,14 @@ #include #include +#ifndef __UNUSED +# define __UNUSED __attribute__ ((unused)) +#endif + +#ifndef __dead +# define __dead __attribute__ ((noreturn)) +#endif + /* API definitions lifted from OpenBSD src/include */ /* pwd.h */ @@ -45,10 +53,10 @@ void closefrom(int); /* err.h */ #ifndef HAVE_VERRC -void verrc(int eval, int code, const char *fmt, va_list ap); +void __dead verrc(int eval, int code, const char *fmt, va_list ap); #endif /* !HAVE_VERRC */ #ifndef HAVE_ERRC -void errc(int eval, int code, const char *fmt, ...); +__dead void errc(int eval, int code, const char *fmt, ...); #endif /* !HAVE_ERRC */ #ifndef HAVE_SETPROGNAME