summaryrefslogtreecommitdiff
path: root/sci-calculators/units/files/units-2.20-readerror.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sci-calculators/units/files/units-2.20-readerror.patch')
-rw-r--r--sci-calculators/units/files/units-2.20-readerror.patch11
1 files changed, 11 insertions, 0 deletions
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