summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-08 01:55:17 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-08 01:55:35 +0200
commitda5fcb10605026d1baa09f6da9b516a5641faa9c (patch)
tree5a8a584352315a9d86ef2312c0fc36eca89aaf35
parented370f5daa27cf3c22b137b18fa9c95f1c363025 (diff)
downloadsystemd-da5fcb10605026d1baa09f6da9b516a5641faa9c.tar.gz
sd-daemon: optionally, avoid hiding the ELF symbols
-rw-r--r--src/sd-daemon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sd-daemon.h b/src/sd-daemon.h
index 347421381f..6c8872fc23 100644
--- a/src/sd-daemon.h
+++ b/src/sd-daemon.h
@@ -67,7 +67,7 @@ extern "C" {
See sd-daemon(7) for more information.
*/
-#if __GNUC__ >= 4
+#if (__GNUC__ >= 4) && !defined(SD_EXPORT_SYMBOLS)
#define _sd_printf_attr_(a,b) __attribute__ ((format (printf, a, b)))
#define _sd_hidden_ __attribute__ ((visibility("hidden")))
#else