Mercurial > hg > octave-lojdl > gnulib-hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
12490:e811ee92408c | 12491:ad883448fbdf |
---|---|
23 | 23 |
24 #if defined __need_system_fcntl_h | 24 #if defined __need_system_fcntl_h |
25 /* Special invocation convention. */ | 25 /* Special invocation convention. */ |
26 | 26 |
27 #include <sys/types.h> | 27 #include <sys/types.h> |
28 #include <sys/stat.h> | 28 #ifndef __GLIBC__ /* Avoid namespace pollution on glibc systems. */ |
29 #include <unistd.h> | 29 # include <sys/stat.h> |
30 # include <unistd.h> | |
31 #endif | |
30 #@INCLUDE_NEXT@ @NEXT_FCNTL_H@ | 32 #@INCLUDE_NEXT@ @NEXT_FCNTL_H@ |
31 | 33 |
32 #else | 34 #else |
33 /* Normal invocation convention. */ | 35 /* Normal invocation convention. */ |
34 | 36 |
35 #ifndef _GL_FCNTL_H | 37 #ifndef _GL_FCNTL_H |
36 | 38 |
37 #include <sys/types.h> | 39 #include <sys/types.h> |
38 #include <sys/stat.h> | 40 #ifndef __GLIBC__ /* Avoid namespace pollution on glibc systems. */ |
39 #include <unistd.h> | 41 # include <sys/stat.h> |
42 # include <unistd.h> | |
43 #endif | |
40 /* The include_next requires a split double-inclusion guard. */ | 44 /* The include_next requires a split double-inclusion guard. */ |
41 #@INCLUDE_NEXT@ @NEXT_FCNTL_H@ | 45 #@INCLUDE_NEXT@ @NEXT_FCNTL_H@ |
42 | 46 |
43 #ifndef _GL_FCNTL_H | 47 #ifndef _GL_FCNTL_H |
44 #define _GL_FCNTL_H | 48 #define _GL_FCNTL_H |