diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-06-28 00:16:44 +0200 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-08-23 12:56:21 +0100 |
commit | 0f9b26911deb86f03934c081eb4ae49f1de29243 (patch) | |
tree | de6228f9669bff9e1e2e8e972d7b46e7dc1b9f4a | |
parent | 8566334a211ca32bc441c99b23eb96182216067b (diff) | |
download | busybox-w32-0f9b26911deb86f03934c081eb4ae49f1de29243.tar.gz busybox-w32-0f9b26911deb86f03934c081eb4ae49f1de29243.tar.bz2 busybox-w32-0f9b26911deb86f03934c081eb4ae49f1de29243.zip |
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 <johannes.schindelin@gmx.de>
Signed-off-by: Ron Yorston <rmy@pobox.com>
-rw-r--r-- | win32/fnmatch.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
120 | whose names are inconsistent. */ | 120 | whose names are inconsistent. */ |
121 | 121 | ||
122 | # if !defined _LIBC && !defined getenv | 122 | # if !defined _LIBC && !defined getenv |
123 | extern char *getenv (); | 123 | extern char *getenv (const char *); |
124 | # endif | 124 | # endif |
125 | 125 | ||
126 | # ifndef errno | 126 | # ifndef errno |