DEVELOPERS: add Yegor Yefremov for the ser2net package
[buildroot-gz.git] / package / dropwatch / 0002-binutils-2.23.1.patch
blob4d43356a6a9d0eedda8e2f68769e855edbcb0ddc
1 libbfd from binutils 2.23.1+ requires PACKAGE* definitions from autoconf.
2 Patch from https://fedorahosted.org/dropwatch/ticket/5
3 Upstream status: new.
5 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
7 diff -aurd src.orig/lookup.c src/lookup.c
8 --- a/src/lookup.c 2011-10-03 22:51:38.000000000 +0400
9 +++ b/src/lookup.c 2013-02-18 09:13:56.683214438 +0400
10 @@ -27,13 +27,13 @@
11 #include <stdlib.h>
12 #include <stdio.h>
13 #include <sys/utsname.h>
14 -#include <bfd.h>
15 #include <string.h>
16 #include <unistd.h>
17 #include <sys/types.h>
18 #include <sys/stat.h>
20 #include "lookup.h"
21 +#include <bfd.h>
23 extern struct lookup_methods bfd_methods;
24 extern struct lookup_methods kallsym_methods;
25 diff -aurd src.orig/lookup.h src/lookup.h
26 --- a/src/lookup.h 2011-10-03 22:51:38.000000000 +0400
27 +++ b/src/lookup.h 2013-02-18 09:11:00.506895026 +0400
28 @@ -28,6 +28,9 @@
29 #include <stdlib.h>
30 #include <asm/types.h>
32 +// satisfy PR 14072 in bfd.h
33 +#define PACKAGE 1
34 +#define PACKAGE_VERSION 1
37 * Initalization routine
38 diff -aurd src.orig/lookup_bfd.c src/lookup_bfd.c
39 --- a/src/lookup_bfd.c 2012-01-16 22:34:11.000000000 +0400
40 +++ b/src/lookup_bfd.c 2013-02-18 09:14:02.472984310 +0400
41 @@ -25,13 +25,13 @@
42 #include <stdlib.h>
43 #include <stdio.h>
44 #include <sys/utsname.h>
45 -#include <bfd.h>
46 #include <string.h>
47 #include <unistd.h>
48 #include <sys/types.h>
49 #include <sys/stat.h>
51 #include "lookup.h"
52 +#include <bfd.h>
55 static int lookup_bfd_init(void)
56 diff -aurd src.orig/lookup_kas.c src/lookup_kas.c
57 --- a/src/lookup_kas.c 2012-05-31 02:43:23.000000000 +0400
58 +++ b/src/lookup_kas.c 2013-02-18 09:14:07.906101713 +0400
59 @@ -25,7 +25,6 @@
60 #include <stdlib.h>
61 #include <stdio.h>
62 #include <sys/utsname.h>
63 -#include <bfd.h>
64 #include <string.h>
65 #include <unistd.h>
66 #include <sys/types.h>
67 @@ -33,6 +32,7 @@
68 #include <sys/queue.h>
70 #include "lookup.h"
71 +#include <bfd.h>
73 struct symbol_entry {
74 char *sym_name;