From 8cdcad43c2fad5781d76d24ba34756a590028a4c Mon Sep 17 00:00:00 2001 From: Emil Mikulic Date: Tue, 3 May 2011 20:50:31 +1000 Subject: [PATCH] Add guard around __printflike --- darkhttpd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/darkhttpd.c b/darkhttpd.c index 23dbd87..5ccb944 100644 --- a/darkhttpd.c +++ b/darkhttpd.c @@ -75,6 +75,7 @@ static const int debug = 1; #define O_EXLOCK O_EXCL #endif +#ifndef __printflike #ifdef __GNUC__ /* [->] borrowed from FreeBSD's src/sys/sys/cdefs.h,v 1.102.2.2.2.1 */ #define __printflike(fmtarg, firstvararg) \ @@ -83,6 +84,7 @@ static const int debug = 1; #else #define __printflike(fmtarg, firstvararg) #endif +#endif /* [->] borrowed from FreeBSD's src/sys/sys/systm.h,v 1.276.2.7.4.1 */ #ifndef CTASSERT /* Allow lint to override */