* 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:
Roland Illig 2004-09-19 17:35:05 +00:00
parent c4db0cac6a
commit 9707addee8
2 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,8 @@
* utilunix.c: likewise. * utilunix.c: likewise.
* view.c: likewise. * view.c: likewise.
* widget.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> 2004-09-19 Roland Illig <roland.illig@gmx.de>

View File

@ -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; extern char **environ;
#endif
/* We assume text [0] == '$' and want to have a look at text [1], if it is /* 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 */ equal to '{', so that we should append '}' at the end */