From 0f9b26911deb86f03934c081eb4ae49f1de29243 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 28 Jun 2017 00:16:44 +0200 Subject: win32/fnmatch: fix old-style function declaration It would be more straight-forward to simply #include "libbb.h" which includes a #define getenv mingw_getenv, but that header also defines isprint() to a function that is nowhere to be found, leading to link problems. So let's go the easy route. Signed-off-by: Johannes Schindelin Signed-off-by: Ron Yorston --- win32/fnmatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/fnmatch.c b/win32/fnmatch.c index 74d02078c..add516fb3 100644 --- a/win32/fnmatch.c +++ b/win32/fnmatch.c @@ -120,7 +120,7 @@ whose names are inconsistent. */ # if !defined _LIBC && !defined getenv -extern char *getenv (); +extern char *getenv (const char *); # endif # ifndef errno -- cgit v1.2.3-55-g6feb