summaryrefslogtreecommitdiffstats
path: root/patches/gmake-441-win32.patch
blob: 10aa33b0e6c2a51983d35ed6a2e34e16244010bc (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
diff -ruNb make-4.4.1.orig/lib/fnmatch.c make-4.4.1/lib/fnmatch.c
--- make-4.4.1.orig/lib/fnmatch.c	2025-07-17 13:04:06.920464871 +0200
+++ make-4.4.1/lib/fnmatch.c	2025-07-17 13:04:28.010513618 +0200
@@ -117,13 +117,6 @@
     || STREQ (string, "cntrl") || STREQ (string, "blank"))
 # endif
 
-/* Avoid depending on library functions or files
-   whose names are inconsistent.  */
-
-# if !defined _LIBC && !defined getenv
-extern char *getenv ();
-# endif
-
 # ifndef errno
 extern int errno;
 # endif
diff -ruNb make-4.4.1.orig/src/getopt.c make-4.4.1/src/getopt.c
--- make-4.4.1.orig/src/getopt.c	2025-07-17 13:04:06.926464885 +0200
+++ make-4.4.1/src/getopt.c	2025-07-17 13:07:33.623954181 +0200
@@ -202,7 +202,7 @@
    whose names are inconsistent.  */
 
 #ifndef getenv
-extern char *getenv ();
+extern char *getenv (const char *);
 #endif
 
 static char *
diff -ruNb make-4.4.1.orig/src/getopt.h make-4.4.1/src/getopt.h
--- make-4.4.1.orig/src/getopt.h	2025-07-17 13:04:06.926464885 +0200
+++ make-4.4.1/src/getopt.h	2025-07-17 13:09:08.460185842 +0200
@@ -102,7 +102,7 @@
    errors, only prototype getopt for the GNU C library.  */
 extern int getopt (int argc, char *const *argv, const char *shortopts);
 #else /* not __GNU_LIBRARY__ */
-extern int getopt ();
+extern int getopt (int,  char * const*, const char *);
 #endif /* __GNU_LIBRARY__ */
 extern int getopt_long (int argc, char *const *argv, const char *shortopts,
 		        const struct option *longopts, int *longind);