Re: mc-4.6.1 release?
- From: Pavel Tsekov <ptsekov gmx net>
- Cc: MC dev <mc-devel gnome org>
- Subject: Re: mc-4.6.1 release?
- Date: Fri, 22 Oct 2004 14:34:41 +0200
Hello,
On Thu, 21 Oct 2004, Pavel Roskin wrote:
> We also should test FreeBSD and Cygwin.
Attached is the patch to fix the following warning:
../../src/complete.c:222: warning: redundant redeclaration of `environ' in same scope
/usr/include/sys/unistd.h:15: warning: previous declaration of `environ'
Cygwin declares `environ' in unistd.h as per SUS.
Index: complete.c
===================================================================
RCS file: /cvsroot/mc/mc/src/complete.c,v
retrieving revision 1.51
diff -u -p -r1.51 complete.c
--- complete.c 27 Sep 2004 11:26:53 -0000 1.51
+++ complete.c 22 Oct 2004 14:29:32 -0000
@@ -218,7 +218,7 @@ username_completion_function (char *text
}
/* Linux declares environ in <unistd.h>, so don't repeat it here. */
-#if (!(defined(__linux__) && defined (__USE_GNU)))
+#if (!(defined(__linux__) && defined (__USE_GNU)) && !defined(__CYGWIN__))
extern char **environ;
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]