summaryrefslogtreecommitdiff
path: root/sci-calculators/units/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-10-01 23:05:41 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-10-01 23:05:41 +0100
commit2e34d110f164bf74d55fced27fe0000201b3eec5 (patch)
treef00ae60197c58f84ad51f60b210738d9b70f555b /sci-calculators/units/files
parentf70a1bfc721336d4fc7dfb711c2f518a6b18cf16 (diff)
gentoo resync : 01.10.2020
Diffstat (limited to 'sci-calculators/units/files')
-rw-r--r--sci-calculators/units/files/units-2.20-WIN32.patch24
-rw-r--r--sci-calculators/units/files/units-2.20-readerror.patch11
2 files changed, 35 insertions, 0 deletions
diff --git a/sci-calculators/units/files/units-2.20-WIN32.patch b/sci-calculators/units/files/units-2.20-WIN32.patch
new file mode 100644
index 000000000000..fbe7599831c4
--- /dev/null
+++ b/sci-calculators/units/files/units-2.20-WIN32.patch
@@ -0,0 +1,24 @@
+--- a/units.c
++++ b/units.c
+@@ -4087,7 +4087,9 @@
+ checkcwd (char *file)
+ {
+ FILE *fp;
++#ifdef _WIN32
+ char *p;
++#endif
+
+ fp = fopen(file, "r");
+ if (fp){
+@@ -4630,7 +4630,10 @@
+ printversion()
+ {
+ int exists;
+- char *unitsfile, *localemap;
++ char *unitsfile;
++#ifdef _WIN32
++ char *localemap;
++#endif
+
+ if (flags.verbose == 0) {
+ printf("GNU Units version %s\n", VERSION);
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 000000000000..ccb12c681539
--- /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