From 4d1d0113fd3309aac30b2dd1d443bf7c7d5f0a3d Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Fri, 17 Dec 1999 18:44:15 +0000 Subject: 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 --- archival/gzip.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'archival/gzip.c') 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) /* Open output fille */ +#if (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1) outFileNum=open( ofname, O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW); +#else + outFileNum=open( ofname, O_RDWR|O_CREAT|O_EXCL); +#endif if (outFileNum < 0) { perror(ofname); do_exit(WARNING); -- cgit v1.2.3