mc-4.6.1 release?
Pavel Tsekov
ptsekov at gmx.net
Fri Oct 22 12:34:41 UTC 2004
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.
-------------- next part --------------
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
More information about the mc-devel
mailing list