python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / ushare / 0002-ushare-fix-building-with-gcc-5.x.patch
blobabef81fe4db03f8e40628d72c1e670a6d15dac56
1 From 6abc52190accc8d8b17455420e234a1d7dc7ba55 Mon Sep 17 00:00:00 2001
2 From: Peter Korsgaard <peter@korsgaard.com>
3 Date: Mon, 16 Nov 2015 23:15:27 +0100
4 Subject: [PATCH] ushare: fix building with gcc 5.x
6 GCC5 defaults to -std=gnu11, which has different semantics for inline than
7 previous versions:
9 https://gcc.gnu.org/gcc-5/porting_to.html
11 Which causes linker issues when display_headers() and start_log() are
12 referenced from other files. There's no real reason why these needs to be
13 inline, so just drop the keyword.
15 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
16 ---
17 src/trace.c | 2 +-
18 src/ushare.c | 2 +-
19 2 files changed, 2 insertions(+), 2 deletions(-)
21 diff --git a/src/trace.c b/src/trace.c
22 index 50729ef..4e314ef 100644
23 --- a/src/trace.c
24 +++ b/src/trace.c
25 @@ -57,7 +57,7 @@ print_log (log_level level, const char *format, ...)
26 va_end (va);
29 -inline void
30 +void
31 start_log (void)
33 openlog (PACKAGE_NAME, LOG_PID, LOG_DAEMON);
34 diff --git a/src/ushare.c b/src/ushare.c
35 index b64451e..af46e78 100644
36 --- a/src/ushare.c
37 +++ b/src/ushare.c
38 @@ -496,7 +496,7 @@ reload_config (int s __attribute__ ((unused)))
42 -inline void
43 +void
44 display_headers (void)
46 printf (_("%s (version %s), a lightweight UPnP A/V and DLNA Media Server.\n"),
47 --
48 2.1.4