1 |
commit: 432aa1cabbbb9eacceddb765adf1831ad8644d0f |
2 |
Author: Markos Chandras <hwoarang <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 6 16:05:56 2016 +0000 |
4 |
Commit: Markos Chandras <hwoarang <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 6 16:11:55 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=432aa1ca |
7 |
|
8 |
media-video/ushare: Fix building with gcc-5. Bug #569968 |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
media-video/ushare/files/08_all_gcc5.patch | 45 ++++++++++++++++++++++++++++++ |
13 |
1 file changed, 45 insertions(+) |
14 |
|
15 |
diff --git a/media-video/ushare/files/08_all_gcc5.patch b/media-video/ushare/files/08_all_gcc5.patch |
16 |
new file mode 100644 |
17 |
index 0000000..d76f877 |
18 |
--- /dev/null |
19 |
+++ b/media-video/ushare/files/08_all_gcc5.patch |
20 |
@@ -0,0 +1,45 @@ |
21 |
+Various gcc-5 fixes |
22 |
+ |
23 |
+https://gcc.gnu.org/gcc-5/porting_to.html |
24 |
+ |
25 |
+Signed-off-by: Markos Chandras <hwoarang@g.o> |
26 |
+Index: ushare-1.1a/src/trace.h |
27 |
+=================================================================== |
28 |
+--- ushare-1.1a.orig/src/trace.h |
29 |
++++ ushare-1.1a/src/trace.h |
30 |
+@@ -29,7 +29,7 @@ typedef enum { |
31 |
+ |
32 |
+ void print_log (log_level level, const char *format, ...) |
33 |
+ __attribute__ ((format (printf, 2, 3))); |
34 |
+-inline void start_log (void); |
35 |
++extern inline void start_log (void); |
36 |
+ |
37 |
+ /* log_info |
38 |
+ * Normal print, to replace printf |
39 |
+Index: ushare-1.1a/src/ushare.h |
40 |
+=================================================================== |
41 |
+--- ushare-1.1a.orig/src/ushare.h |
42 |
++++ ushare-1.1a/src/ushare.h |
43 |
+@@ -127,6 +127,6 @@ struct action_event_t { |
44 |
+ struct service_t *service; |
45 |
+ }; |
46 |
+ |
47 |
+-inline void display_headers (void); |
48 |
++extern inline void display_headers (void); |
49 |
+ |
50 |
+ #endif /* _USHARE_H_ */ |
51 |
+Index: ushare-1.1a/src/ushare.c |
52 |
+=================================================================== |
53 |
+--- ushare-1.1a.orig/src/ushare.c |
54 |
++++ ushare-1.1a/src/ushare.c |
55 |
+@@ -49,6 +49,10 @@ |
56 |
+ #include <ifaddrs.h> |
57 |
+ #endif |
58 |
+ |
59 |
++#ifdef HAVE_LOCALE_H |
60 |
++#include <locale.h> |
61 |
++#endif |
62 |
++ |
63 |
+ #if (defined(__unix__) || defined(unix)) && !defined(USG) |
64 |
+ #include <sys/param.h> |
65 |
+ #endif |