diff --git a/dd_rescue.changes b/dd_rescue.changes index a9b4dee..319caa6 100644 --- a/dd_rescue.changes +++ b/dd_rescue.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 4 23:25:28 CEST 2017 - kurt@garloff.de + +- Mark inline function static. + ------------------------------------------------------------------- Fri Aug 25 15:19:24 CEST 2017 - kurt@garloff.de diff --git a/dd_rescue.spec b/dd_rescue.spec index 443a7e1..96487d8 100644 --- a/dd_rescue.spec +++ b/dd_rescue.spec @@ -27,6 +27,7 @@ Source0: http://garloff.de/kurt/linux/ddrescue/%{name}-%{version}.tar.bz2 Source1: http://garloff.de/kurt/linux/ddrescue/%{name}-%{version}.tar.bz2.asc Source2: %{name}.keyring Source99: %{name}.changes +Patch1: libddr_hash-round-down-static.diff BuildRequires: autoconf BuildRequires: libattr-devel BuildRequires: libfallocate-devel @@ -112,6 +113,7 @@ data to the decompressor; the plugin is still young and might expose bugs. %prep %setup -q +%patch1 -p0 # Remove build time references so build-compare can do its work FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{SOURCE99} '+%%H:%%M') diff --git a/libddr_hash-round-down-static.diff b/libddr_hash-round-down-static.diff new file mode 100644 index 0000000..9824470 --- /dev/null +++ b/libddr_hash-round-down-static.diff @@ -0,0 +1,11 @@ +--- libddr_hash.c.orig 2017-08-25 09:51:38.170686244 +0200 ++++ libddr_hash.c 2017-08-25 17:14:33.308431613 +0200 +@@ -398,7 +398,7 @@ + #error __WORDSIZE unknown + #endif + +-inline int round_down(int val, const int gran) ++static inline int round_down(int val, const int gran) + { + return val-val%gran; + }