summaryrefslogtreecommitdiff
path: root/gunzip.c
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>1999-12-17 18:44:15 +0000
committerErik Andersen <andersen@codepoet.org>1999-12-17 18:44:15 +0000
commit4d1d0113fd3309aac30b2dd1d443bf7c7d5f0a3d (patch)
tree1d18bbba8f8a1d78d7ff13e7a87ee2aab165125f /gunzip.c
parent6da0ae8183a31d4faab745d534a363c7e66ef864 (diff)
downloadbusybox-w32-4d1d0113fd3309aac30b2dd1d443bf7c7d5f0a3d.tar.gz
busybox-w32-4d1d0113fd3309aac30b2dd1d443bf7c7d5f0a3d.tar.bz2
busybox-w32-4d1d0113fd3309aac30b2dd1d443bf7c7d5f0a3d.zip
Reworked the source so it will compile and run under glibc 2.0.7
and linux kernel 2.0.36 (though the dubious reasons why someone would want to do that defy imagination ;) -Erik
Diffstat (limited to 'gunzip.c')
-rw-r--r--gunzip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gunzip.c b/gunzip.c
index a809fed68..61391a33f 100644
--- a/gunzip.c
+++ b/gunzip.c
@@ -805,7 +805,11 @@ int gunzip_main (int argc, char** argv)
805 } 805 }
806 806
807 /* Open output fille */ 807 /* Open output fille */
808#if (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1)
808 outFileNum=open( ofname, O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW); 809 outFileNum=open( ofname, O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW);
810#else
811 outFileNum=open( ofname, O_RDWR|O_CREAT|O_EXCL);
812#endif
809 if (outFileNum < 0) { 813 if (outFileNum < 0) {
810 perror(ofname); 814 perror(ofname);
811 do_exit(WARNING); 815 do_exit(WARNING);