mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Alsways include <bits/types.h> in <fcntl.h>.
Move include of <bits/types.h> to the top and include it unconditionally.
This commit is contained in:
committed by
Andreas Jaeger
parent
228cfb018a
commit
ac5c94d31d
@ -1,3 +1,8 @@
|
|||||||
|
2012-10-20 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* io/fcntl.h: Move include of <bits/types.h> to the top and
|
||||||
|
include it unconditionally.
|
||||||
|
|
||||||
2012-10-20 H.J. Lu <hongjiu.lu@intel.com>
|
2012-10-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* wcsmbs/Makefile (tests-ifunc): New variable.
|
* wcsmbs/Makefile (tests-ifunc): New variable.
|
||||||
|
@ -27,6 +27,9 @@
|
|||||||
/* This must be early so <bits/fcntl.h> can define types winningly. */
|
/* This must be early so <bits/fcntl.h> can define types winningly. */
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
|
/* Get __mode_t, __dev_t and __off_t .*/
|
||||||
|
#include <bits/types.h>
|
||||||
|
|
||||||
/* Get the definitions of O_*, F_*, FD_*: all the
|
/* Get the definitions of O_*, F_*, FD_*: all the
|
||||||
numbers and flag bits for `open', `fcntl', et al. */
|
numbers and flag bits for `open', `fcntl', et al. */
|
||||||
#include <bits/fcntl.h>
|
#include <bits/fcntl.h>
|
||||||
@ -56,7 +59,6 @@ typedef __pid_t pid_t;
|
|||||||
|
|
||||||
/* For XPG all symbols from <sys/stat.h> should also be available. */
|
/* For XPG all symbols from <sys/stat.h> should also be available. */
|
||||||
#if defined __USE_XOPEN || defined __USE_XOPEN2K8
|
#if defined __USE_XOPEN || defined __USE_XOPEN2K8
|
||||||
# include <bits/types.h> /* For __mode_t and __dev_t. */
|
|
||||||
# define __need_timespec
|
# define __need_timespec
|
||||||
# include <time.h>
|
# include <time.h>
|
||||||
# include <bits/stat.h>
|
# include <bits/stat.h>
|
||||||
|
Reference in New Issue
Block a user