aboutsummaryrefslogtreecommitdiff
path: root/fastjar
diff options
context:
space:
mode:
authorBryce McKinlay <mckinlay@redhat.com>2004-07-19 20:41:03 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2004-07-19 21:41:03 +0100
commit932c738d209e6530399216ec4ccd8add51f68f46 (patch)
treeda69cb9f6c3a9baa2279b699737512c66d6f27d1 /fastjar
parent4f1605d2ca37c757a35b3157a55f7b9c5615ae31 (diff)
downloadgcc-932c738d209e6530399216ec4ccd8add51f68f46.zip
gcc-932c738d209e6530399216ec4ccd8add51f68f46.tar.gz
gcc-932c738d209e6530399216ec4ccd8add51f68f46.tar.bz2
jartool.c (main): Ensure that only one of ftruncate and _chsize is used.
2004-07-19 Bryce McKinlay <mckinlay@redhat.com> * jartool.c (main): Ensure that only one of ftruncate and _chsize is used. From-SVN: r84931
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 2b54f3b..d3ee407a 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 d57794d..f43af14 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