summaryrefslogtreecommitdiff
path: root/sci-calculators/units/files/units-2.20-WIN32.patch
blob: fbe7599831c418c947e42c450273fc5d37f1608f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);