summaryrefslogtreecommitdiff
path: root/dev-util/dropwatch/files/dropwatch-1.4-binutils-2.23.patch
blob: 94770ab3dc917f9555fb10e36f552e7b9ac6d3dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
commit a5aa2c3cbae207d12b9f2fded36a47031c55be36
Author: Andrew Savchenko <bircoph@gmail.com>
Date:   Thu Nov 17 00:04:47 2016 +0300

    Fix build with recent binutils
    
    Gentoo-Bug:         457980
    Upstream Ticket:    5

--- a/src/lookup.c
+++ b/src/lookup.c
@@ -27,13 +27,13 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <sys/utsname.h>
-#include <bfd.h>
 #include <string.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 
 #include "lookup.h"
+#include <bfd.h>
 
 extern struct lookup_methods bfd_methods;
 extern struct lookup_methods kallsym_methods;
--- a/src/lookup.h
+++ b/src/lookup.h
@@ -28,6 +28,9 @@
 #include <stdlib.h>
 #include <asm/types.h>
 
+// satisfy PR 14072 in bfd.h
+#define PACKAGE 1
+#define PACKAGE_VERSION 1
 
 /*
  * Initalization routine
--- a/src/lookup_bfd.c
+++ b/src/lookup_bfd.c
@@ -25,13 +25,13 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <sys/utsname.h>
-#include <bfd.h>
 #include <string.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 
 #include "lookup.h"
+#include <bfd.h>
 
 
 static int lookup_bfd_init(void)
--- a/src/lookup_kas.c
+++ b/src/lookup_kas.c
@@ -25,7 +25,6 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <sys/utsname.h>
-#include <bfd.h>
 #include <string.h>
 #include <unistd.h>
 #include <sys/types.h>
@@ -33,6 +32,7 @@
 #include <sys/queue.h>
 
 #include "lookup.h"
+#include <bfd.h>
 
 struct symbol_entry {
 	char *sym_name;