summaryrefslogtreecommitdiff
path: root/sci-calculators/units/files/units-2.20-readerror.patch
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-07-13 08:07:42 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-07-13 08:07:59 -0400
commit99506f6bc429482d90111050a1f759a89f6fbc36 (patch)
treeeafeb42fdac35e074fe6332735ea3947752eb1b4 /sci-calculators/units/files/units-2.20-readerror.patch
parent5baf6aba1d353151946a870ac162e751c74df76e (diff)
downloadgentoo-overlay-99506f6bc429482d90111050a1f759a89f6fbc36.tar.xz
gentoo-overlay-99506f6bc429482d90111050a1f759a89f6fbc36.zip
sci-calculators/units: add
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