Mercurial > hg > octave-lojdl > gnulib-hg
diff lib/fcntl.in.h @ 12491:ad883448fbdf
Reduce namespace pollution on glibc systems.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 24 Dec 2009 16:59:36 +0100 |
parents | f3aceada3c52 |
children | c2cbabec01dd |
line wrap: on
line diff
--- a/lib/fcntl.in.h +++ b/lib/fcntl.in.h @@ -25,8 +25,10 @@ /* Special invocation convention. */ #include <sys/types.h> -#include <sys/stat.h> -#include <unistd.h> +#ifndef __GLIBC__ /* Avoid namespace pollution on glibc systems. */ +# include <sys/stat.h> +# include <unistd.h> +#endif #@INCLUDE_NEXT@ @NEXT_FCNTL_H@ #else @@ -35,8 +37,10 @@ #ifndef _GL_FCNTL_H #include <sys/types.h> -#include <sys/stat.h> -#include <unistd.h> +#ifndef __GLIBC__ /* Avoid namespace pollution on glibc systems. */ +# include <sys/stat.h> +# include <unistd.h> +#endif /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_FCNTL_H@