diff options
Diffstat (limited to 'lib/compiler.h')
| -rw-r--r-- | lib/compiler.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/compiler.h b/lib/compiler.h index a6fd858518..bf443906eb 100644 --- a/lib/compiler.h +++ b/lib/compiler.h @@ -370,7 +370,11 @@ extern "C" { #define PRIx64 "Lx" #else /* !_FRR_ATTRIBUTE_PRINTFRR */ +#ifdef __NetBSD__ +#define PRINTFRR(a, b) __attribute__((format(gnu_syslog, a, b))) +#else #define PRINTFRR(a, b) __attribute__((format(printf, a, b))) +#endif /* frr-format plugin is C-only for now, so no point in doing these shenanigans * for C++... (also they can break some C++ stuff...) |
