* gl/lib/fnmatch.c (getenv): Guard the declaration with __EMX__. * src/getopt.c: Likewise. --- gl/lib/fnmatch.c | 2 +- src/getopt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gl/lib/fnmatch.c b/gl/lib/fnmatch.c index 528962f8..6682c076 100644 --- a/gl/lib/fnmatch.c +++ b/gl/lib/fnmatch.c @@ -119,7 +119,7 @@ If not, see <https://www.gnu.org/licenses/>. */ /* Avoid depending on library functions or files whose names are inconsistent. */ -# if !defined _LIBC && !defined getenv +# if !defined _LIBC && !defined getenv && !defined __EMX__ extern char *getenv (); # endif diff --git a/src/getopt.c b/src/getopt.c index 8d23be12..ccf4660f 100644 --- a/src/getopt.c +++ b/src/getopt.c @@ -201,7 +201,7 @@ static char *posixly_correct; /* Avoid depending on library functions or files whose names are inconsistent. */ -#ifndef getenv +#if !defined getenv && !defined __EMX__ extern char *getenv (); #endif -- 2.50.1
