summaryrefslogtreecommitdiff
path: root/fastjar
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-19 20:41:03 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-19 20:41:03 +0000
commit8422a9b1d0e9f56a08902c4b7eb608de85bec163 (patch)
treeda69cb9f6c3a9baa2279b699737512c66d6f27d1 /fastjar
parent3c71a5cc6622450c210e13a8de38511044167b08 (diff)
downloadgcc-8422a9b1d0e9f56a08902c4b7eb608de85bec163.tar.gz
2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
* jartool.c (main): Ensure that only one of ftruncate and _chsize is used. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84931 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fastjar')
-rw-r--r--fastjar/ChangeLog5
-rw-r--r--fastjar/jartool.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/fastjar/ChangeLog b/fastjar/ChangeLog
index 2b54f3bde3c..d3ee407ac1b 100644
--- a/fastjar/ChangeLog
+++ b/fastjar/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
+
+ * jartool.c (main): Ensure that only one of ftruncate and _chsize
+ is used.
+
2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
PR 16472
diff --git a/fastjar/jartool.c b/fastjar/jartool.c
index d57794dea92..f43af14a62d 100644
--- a/fastjar/jartool.c
+++ b/fastjar/jartool.c
@@ -580,8 +580,7 @@ int main(int argc, char **argv){
if (action == ACTION_UPDATE)
#if HAVE_FTRUNCATE
ftruncate (jarfd, lseek (jarfd, 0, SEEK_CUR));
-#endif
-#if HAVE__CHSIZE
+#else
_chsize (jarfd, lseek (jarfd, 0, SEEK_CUR));
#endif