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 --- gunzip.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gunzip.c') 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) } /* 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