A bunch of defined(__GLIBC__) added. static-linking warning expanded

This commit is contained in:
Denis Vlasenko
2006-12-18 21:49:06 +00:00
parent f42ff90453
commit 83e5d6f772
13 changed files with 14 additions and 24 deletions

View File

@ -1215,7 +1215,7 @@ int gzip_main(int argc, char **argv)
path = xasprintf("%s.gz", argv[i]);
/* Open output file */
#if (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1) && defined O_NOFOLLOW
#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 && defined(O_NOFOLLOW)
outFileNum =
open(path, O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW);
#else