summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGergely Nagy <algernon@balabit.hu>2012-03-24 11:24:33 +0100
committerGergely Nagy <algernon@balabit.hu>2012-03-24 11:24:33 +0100
commitdeb0d36d4e3343f2424b73caccfb494157f94a75 (patch)
treea04edbe37b7a487e29e6b493882b3a113288ecd1
parent21e8d846ed040a1bf55987036578807d5826d958 (diff)
downloadlibumberlog-deb0d36d4e3343f2424b73caccfb494157f94a75.tar.gz
libumberlog-deb0d36d4e3343f2424b73caccfb494157f94a75.tar.xz
libumberlog-deb0d36d4e3343f2424b73caccfb494157f94a75.zip
Allow compilation with clang, too.
Clang tries to expand the syslog and vsyslog macros when we define our overrides. To work around that, #undef them first. Signed-off-by: Gergely Nagy <algernon@balabit.hu>
-rw-r--r--lib/umberlog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/umberlog.c b/lib/umberlog.c
index 5a0b532..516f41c 100644
--- a/lib/umberlog.c
+++ b/lib/umberlog.c
@@ -430,9 +430,11 @@ __vsyslog_chk (int __pri, int __flag, __const char *__fmt, va_list ap)
void openlog (const char *ident, int option, int facility)
__attribute__((alias ("ul_openlog")));
+#undef syslog
void syslog (int priority, const char *msg_format, ...)
__attribute__((alias ("ul_legacy_syslog")));
+#undef vsyslog
void vsyslog (int priority, const char *msg_format, va_list ap)
__attribute__((alias ("ul_legacy_vsyslog")));