-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

After the gcc cxx-conversion merge has taken place, I get a conflicting
declaration of getcwd in io.h in several places while bootstrapping gcc-4.8.0.

In file included from ../../../src/gcc-4.8.0/gcc/ggc-common.c:25:0:
../../../src/gcc-4.8.0/gcc/system.h:423:36: error: declaration of C function
'char* getcwd(char*, size_t)' conflicts with
In file included from D:/x86_64-w64-trunk/mingw/include/unistd.h:10:0,
                 from ../../../src/gcc-4.8.0/gcc/system.h:253,
                 from ../../../src/gcc-4.8.0/gcc/ggc-common.c:25:
D:/x86_64-w64-trunk/mingw/include/io.h:266:17: error: previous declaration
'char* getcwd(char*, int)' here

proposed patch:

Index: mingw-w64-headers/crt/io.h
===================================================================
- --- mingw-w64-headers/crt/io.h        (Revision 5371)
+++ mingw-w64-headers/crt/io.h  (Arbeitskopie)
@@ -263,7 +263,7 @@
 #ifndef NO_OLDNAMES
 #ifndef _UWIN
   int __cdecl chdir (const char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
- -  char *__cdecl getcwd (char *, int) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
+  char *__cdecl getcwd (char *, size_t) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
   int __cdecl mkdir (const char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
   char *__cdecl mktemp(char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
   int __cdecl rmdir (const char*) __MINGW_ATTRIB_DEPRECATED_MSVC2005;


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJQLfTBAAoJEB3HOsWs+KJbcVYIAJGmXzHcN0KvIOBjq4Wp+Vyr
PBKiMUx8AaXdRvVqT4caoccpuwpfevzRB0FhWTNUbg/KcySt+8CoYkM1Wjmxnz4D
uBIdu9N+LUs1Y6JfN8UNtOei0aPZTZgYtn9tepugPRpUcoBOYkG6NF0oUKvcHdyR
UWC+XgL11KndS28+Pj3YvDs6qp0uCYqk0K5/3kXDYiMutglnY39BVhT+cHh060kO
eIf0lkpBBya+BUL7ORe98gzjPA9+7Sym52TdK5V/f+U7Q/T8n/bNGzbMDpvToFHk
u+DRKRzeJ8oXm1gKbB/m3EHQZaUgzW+tC96DYRUJyzs3dXnKzuYl0ZF1NkZ3FDs=
=ZVzb
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to