Module Name: src Committed By: pooka Date: Tue Feb 25 20:58:18 UTC 2014
Modified Files: src/lib/librumpuser: rumpuser_port.h Log Message: emulate printflike properly to avoid fatal error on clang To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/lib/librumpuser/rumpuser_port.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/librumpuser/rumpuser_port.h diff -u src/lib/librumpuser/rumpuser_port.h:1.28 src/lib/librumpuser/rumpuser_port.h:1.29 --- src/lib/librumpuser/rumpuser_port.h:1.28 Thu Jan 16 16:03:33 2014 +++ src/lib/librumpuser/rumpuser_port.h Tue Feb 25 20:58:18 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: rumpuser_port.h,v 1.28 2014/01/16 16:03:33 pooka Exp $ */ +/* $NetBSD: rumpuser_port.h,v 1.29 2014/02/25 20:58:18 pooka Exp $ */ /* * Portability header for non-NetBSD platforms. @@ -161,8 +161,12 @@ posix_memalign(void **ptr, size_t align, #endif #ifndef __printflike +#ifdef __GNUC__ +#define __printflike(a,b) __attribute__((__format__ (__printf__,a,b))) +#else #define __printflike(a,b) #endif +#endif #ifndef __noinline #ifdef __GNUC__