From: tromey Date: Mon, 30 Apr 2001 23:09:39 +0000 (+0000) Subject: 2001-04-30 Matt Kraai X-Git-Tag: upstream/4.9.2~94671 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=390f2f0e43b3d071f78338a164d0e655d14ddc1e;p=platform%2Fupstream%2Flinaro-gcc.git 2001-04-30 Matt Kraai * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test. (performDelete): Fix #endif placement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41703 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 2ce678a..0c144a0 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2001-04-30 Matt Kraai + + * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test. + (performDelete): Fix #endif placement. + 2001-04-27 Zack Weinberg * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc. diff --git a/libjava/java/io/natFile.cc b/libjava/java/io/natFile.cc index 89cdec6..6fa46c0 100644 --- a/libjava/java/io/natFile.cc +++ b/libjava/java/io/natFile.cc @@ -227,7 +227,7 @@ java::io::File::performSetReadOnly (void) // FIXME? buf[total] = '\0'; -#ifdef HAVE_STAT && HAVE_CHMOD +#if defined (HAVE_STAT) && defined (HAVE_CHMOD) struct stat sb; if (::stat (buf, &sb)) return false; @@ -328,8 +328,8 @@ java::io::File::performDelete (void) #ifdef HAVE_RMDIR if (! ::rmdir (buf)) return true; -#endif // HAVE_RMDIR if (errno == ENOTDIR) +#endif // HAVE_RMDIR return ::unlink (buf) == 0; #endif // HAVE_UNLINK return false;