diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2021-06-23 06:08:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-23 06:08:41 -0400 |
| commit | 2afd15f5c6dbe03931498bced390462d32abe3e9 (patch) | |
| tree | 4201a7d0919966df4f57463f26877206339d1d6e /lib/compiler.h | |
| parent | fa855f8fa3b3bafa53968b5cae3718180c88c92e (diff) | |
| parent | ca846ff82c5ed74cd5d71f316d4a3e428655cc1f (diff) | |
Merge pull request #8656 from opensourcerouting/xref-5424-prep-2
lib: preparations for RFC5424 syslog support
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 e805eb8be4..970ed297fc 100644 --- a/lib/compiler.h +++ b/lib/compiler.h @@ -347,7 +347,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...) |
