summaryrefslogtreecommitdiff
path: root/fastjar/jartool.c
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/jartool.c
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/jartool.c')
-rw-r--r--fastjar/jartool.c3
1 files changed, 1 insertions, 2 deletions
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