natFilePosix.cc (init_native): Define to 0.

2007-08-04  Alfred M. Szmidt  <ams@gnu.org>

        * java/io/natFilePosix.cc (init_native) [!MAXPATHLEN]: Define to 0.
        * java/io/File.java (createTempFile): Don't truncate if the system
        doesn't have a limit on the length of a file name.
        * classpath/lib/java/io/File.class: Regenerate.

From-SVN: r127216
This commit is contained in:
Alfred M. Szmidt 2007-08-04 21:50:01 +00:00 committed by Matthias Klose
parent cbef3aa2f6
commit fcfdb14511
4 changed files with 17 additions and 1 deletions

View file

@ -504,6 +504,12 @@ java::io::File::performDelete (void)
void
java::io::File::init_native ()
{
#ifdef MAXPATHLEN
maxPathLen = MAXPATHLEN;
#else
/* Some systems do not have a limit on the length of a file name,
the GNU system is one such example. */
maxPathLen = 0;
#endif
caseSensitive = true;
}