mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
Ticket #4495: check if environ is defined to fix redefinition on Alpine
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
parent
dd12be7c82
commit
b8e2a376e3
@ -346,6 +346,10 @@ dnl ############################################################################
|
||||
dnl OS specific stuff
|
||||
dnl ############################################################################
|
||||
|
||||
AC_CHECK_DECLS([environ], , ,
|
||||
[ #include <unistd.h>
|
||||
#include <stdlib.h> ])
|
||||
|
||||
case $host_os in
|
||||
*os400)
|
||||
AC_PATH_PROG([PERL], [perl], [/QOpenSys/pkgs/bin/perl])
|
||||
|
@ -54,8 +54,7 @@
|
||||
|
||||
/*** global variables ****************************************************************************/
|
||||
|
||||
/* Linux declares environ in <unistd.h>, so don't repeat it here. */
|
||||
#if (!(defined(__linux__) && defined (__USE_GNU)) && !defined(__CYGWIN__))
|
||||
#if !HAVE_DECL_ENVIRON
|
||||
extern char **environ;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user