mirror of https://github.com/MidnightCommander/mc
* complete.c: Surrounded the declaration of environ by and #ifdef
guard to avoid a GCC warning about a redundant declaration.
This commit is contained in:
parent
c4db0cac6a
commit
9707addee8
|
@ -16,6 +16,8 @@
|
|||
* utilunix.c: likewise.
|
||||
* view.c: likewise.
|
||||
* widget.c: likewise.
|
||||
* complete.c: Surrounded the declaration of environ by and #ifdef
|
||||
guard to avoid a GCC warning about a redundant declaration.
|
||||
|
||||
2004-09-19 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
|
|
|
@ -217,7 +217,10 @@ username_completion_function (char *text, int state)
|
|||
}
|
||||
}
|
||||
|
||||
/* Linux declares environ in <unistd.h>, so don't repeat it here. */
|
||||
#if !defined(__linux__)
|
||||
extern char **environ;
|
||||
#endif
|
||||
|
||||
/* We assume text [0] == '$' and want to have a look at text [1], if it is
|
||||
equal to '{', so that we should append '}' at the end */
|
||||
|
|
Loading…
Reference in New Issue