From 245b5a3b4b6d616adf47361137987e90f8dab22c Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 9 Dec 2016 10:31:23 +0200 Subject: Eliminate unnecessary dependency on bfd.h from sepdebugcrcfix I think the reliance on bfd.h was a mistake. The code was lifted from bfd, but should be totally independent (it just calculates a CRC). Fix the type to be a normal size_t and include sys/stat.h (which was included through bfd.h) to get the definitions of stat and chmod. --- tools/sepdebugcrcfix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/sepdebugcrcfix.c b/tools/sepdebugcrcfix.c index cd7fa02a0..1ce4f612f 100644 --- a/tools/sepdebugcrcfix.c +++ b/tools/sepdebugcrcfix.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -28,7 +29,6 @@ #include #include #include -#include #define _(x) x #define static_assert(expr) \ @@ -46,7 +46,7 @@ static const bool false = 0, true = 1; static unsigned long calc_gnu_debuglink_crc32 (unsigned long crc, const unsigned char *buf, - bfd_size_type len) + size_t len) { static const unsigned long crc32_table[256] = { -- cgit v1.2.1