From 99506f6bc429482d90111050a1f759a89f6fbc36 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Tue, 13 Jul 2021 08:07:42 -0400 Subject: sci-calculators/units: add --- sci-calculators/units/files/units-2.20-readerror.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sci-calculators/units/files/units-2.20-readerror.patch (limited to 'sci-calculators/units/files/units-2.20-readerror.patch') diff --git a/sci-calculators/units/files/units-2.20-readerror.patch b/sci-calculators/units/files/units-2.20-readerror.patch new file mode 100644 index 0000000..ccb12c6 --- /dev/null +++ b/sci-calculators/units/files/units-2.20-readerror.patch @@ -0,0 +1,11 @@ +--- a/units.c ++++ b/units.c +@@ -761,7 +761,7 @@ + } + + +-#define readerror (goterr=1) && errfile && fprintf ++#define readerror(...) do { goterr=1; if (errfile) fprintf(__VA_ARGS__); } while (0) + + #define VAGUE_ERR "%s: error in units file '%s' line %d\n", \ + progname, file, linenum -- cgit v1.2.3-54-g00ecf