From: Thomas Zimmermann Date: Tue, 9 Aug 2016 16:15:25 +0000 (+0200) Subject: dbus-launch: Protect concat2 by DBUS_ENABLE_EMBEDDED_TESTS X-Git-Tag: dbus-1.11.4~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ac1dfb34315b7f4238ea389d4e0c982f3cd0824;p=thirdparty%2Fdbus.git dbus-launch: Protect concat2 by DBUS_ENABLE_EMBEDDED_TESTS Signed-off-by: Thomas Zimmermann Reviewed-by: Simon McVittie Bug: https://bugs.freedesktop.org/show_bug.cgi?id=97282 --- diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c index afc1d911a..bf689d22d 100644 --- a/tools/dbus-launch.c +++ b/tools/dbus-launch.c @@ -205,6 +205,7 @@ xstrdup (const char *str) return copy; } +#ifdef DBUS_ENABLE_EMBEDDED_TESTS static char * concat2 (const char *a, const char *b) @@ -224,6 +225,7 @@ concat2 (const char *a, memcpy (ret + la, b, lb + 1); return ret; } +#endif /* DBUS_ENABLE_EMBEDDED_TESTS */ typedef enum {