committed: fix for getcwd() on mingw32

Adam Megacz
Sun Aug 25 22:29:00 GMT 2002

I know this isn't the most elegant way to fix this, but I'm starting
up my automated nightly build-and-runtest for mingw32 tonight, so I
just need to get the respository into a state where it builds... we
can hash out a better fix later.

  - a

2002-08-25  Adam Megacz <>

        * include/win32.h (getcwd): copied function declaration as
        temporary fix for header confusion.

Index: libjava/include/win32.h
RCS file: /cvs/gcc/gcc/libjava/include/win32.h,v
retrieving revision 1.8
diff -u -r1.8 win32.h
--- libjava/include/win32.h     24 Apr 2002 01:33:19 -0000      1.8
+++ libjava/include/win32.h     26 Aug 2002 05:26:59 -0000
@@ -19,6 +19,9 @@
 #include <gcj/cni.h>
 #include <java/util/Properties.h>
+// FIXME: remove this once the io.h issue is resolved
+extern "C" char*   getcwd (char*, int);
 extern void _Jv_platform_initialize (void);
 extern void _Jv_platform_initProperties (java::util::Properties*);
 extern jlong _Jv_platform_gettimeofday ();

"Cassette tapes are killing the music industry" -- RIAA spokesperson, 1978

More information about the Java-patches mailing list