aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorerik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-12-17 18:44:15 +0000
committererik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-12-17 18:44:15 +0000
commit3132131d6265f6107c652f634c8b4a3e006fb46f (patch)
tree1d18bbba8f8a1d78d7ff13e7a87ee2aab165125f /archival
parent0055f41a9885374ff57a4b90af63aaac6dd01f58 (diff)
downloadbusybox-w32-3132131d6265f6107c652f634c8b4a3e006fb46f.tar.gz
busybox-w32-3132131d6265f6107c652f634c8b4a3e006fb46f.tar.bz2
busybox-w32-3132131d6265f6107c652f634c8b4a3e006fb46f.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 git-svn-id: svn://busybox.net/trunk/busybox@243 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'archival')
-rw-r--r--archival/gunzip.c4
-rw-r--r--archival/gzip.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c
index a809fed68..61391a33f 100644
--- a/archival/gunzip.c
+++ b/archival/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);
diff --git a/archival/gzip.c b/archival/gzip.c
index 983f673e1..76df3ad9a 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -1877,7 +1877,11 @@ int gzip_main(int argc, char ** argv)
1877 1877
1878 1878
1879 /* Open output fille */ 1879 /* Open output fille */
1880#if (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1)
1880 outFileNum=open( ofname, O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW); 1881 outFileNum=open( ofname, O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW);
1882#else
1883 outFileNum=open( ofname, O_RDWR|O_CREAT|O_EXCL);
1884#endif
1881 if (outFileNum < 0) { 1885 if (outFileNum < 0) {
1882 perror(ofname); 1886 perror(ofname);
1883 do_exit(WARNING); 1887 do_exit(WARNING);