2019-07-19 23:10:03 +02:00
|
|
|
From 0ffad73a59d3c831dfab66d4d06f1ab25fce66f2 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
|
|
Date: Thu, 18 Jul 2019 22:58:07 +0200
|
2017-06-17 09:27:26 +02:00
|
|
|
Subject: [PATCH] Fix for binutils 2.23.1
|
|
|
|
|
2013-07-31 21:26:40 +02:00
|
|
|
libbfd from binutils 2.23.1+ requires PACKAGE* definitions from autoconf.
|
2019-07-19 23:10:03 +02:00
|
|
|
So include config.h now that dropwatch uses autoconf
|
2013-07-31 21:26:40 +02:00
|
|
|
|
|
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
2019-07-19 23:10:03 +02:00
|
|
|
[Retrieved (and slightly updated) from:
|
|
|
|
https://git.buildroot.net/buildroot/tree/package/dropwatch/0001-binutils-2.23.1.patch]
|
|
|
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
|
|
[Retrieved from:
|
|
|
|
https://github.com/nhorman/dropwatch/commit/0ffad73a59d3c831dfab66d4d06f1ab25fce66f2]
|
2017-06-17 09:27:26 +02:00
|
|
|
---
|
2019-07-19 23:10:03 +02:00
|
|
|
src/lookup.c | 3 +++
|
|
|
|
src/lookup_bfd.c | 2 ++
|
|
|
|
src/lookup_kas.c | 2 ++
|
|
|
|
3 files changed, 7 insertions(+)
|
2013-07-31 21:26:40 +02:00
|
|
|
|
2017-06-17 09:27:26 +02:00
|
|
|
diff --git a/src/lookup.c b/src/lookup.c
|
2019-07-19 23:10:03 +02:00
|
|
|
index ba54991..521e292 100644
|
2017-06-17 09:27:26 +02:00
|
|
|
--- a/src/lookup.c
|
|
|
|
+++ b/src/lookup.c
|
2019-07-19 23:10:03 +02:00
|
|
|
@@ -24,6 +24,9 @@
|
|
|
|
* 1) /usr/lib/debug/<kernel version> using libbfd
|
|
|
|
* 2) /proc/kallsyms
|
|
|
|
*/
|
|
|
|
+
|
|
|
|
+#include "config.h"
|
|
|
|
+
|
2013-07-31 21:26:40 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <sys/utsname.h>
|
2017-06-17 09:27:26 +02:00
|
|
|
diff --git a/src/lookup_bfd.c b/src/lookup_bfd.c
|
2019-07-19 23:10:03 +02:00
|
|
|
index cc7010b..2c08e5e 100644
|
2017-06-17 09:27:26 +02:00
|
|
|
--- a/src/lookup_bfd.c
|
|
|
|
+++ b/src/lookup_bfd.c
|
2019-07-19 23:10:03 +02:00
|
|
|
@@ -22,6 +22,8 @@
|
|
|
|
* symbollic name using the bfd library
|
|
|
|
*/
|
|
|
|
|
|
|
|
+#include "config.h"
|
|
|
|
+
|
2013-07-31 21:26:40 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <sys/utsname.h>
|
2017-06-17 09:27:26 +02:00
|
|
|
diff --git a/src/lookup_kas.c b/src/lookup_kas.c
|
2019-07-19 23:10:03 +02:00
|
|
|
index 5e05630..2300220 100644
|
2017-06-17 09:27:26 +02:00
|
|
|
--- a/src/lookup_kas.c
|
|
|
|
+++ b/src/lookup_kas.c
|
2019-07-19 23:10:03 +02:00
|
|
|
@@ -22,6 +22,8 @@
|
|
|
|
* symbolic name using /proc/kallsyms
|
|
|
|
*/
|
|
|
|
|
|
|
|
+#include "config.h"
|
|
|
|
+
|
2013-07-31 21:26:40 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
2019-07-19 23:10:03 +02:00
|
|
|
#include <stdint.h>
|