about summary refs log tree commit diff
path: root/io
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2012-10-20 12:52:29 +0200
committerAndreas Jaeger <aj@suse.de>2012-10-20 12:53:58 +0200
commitac5c94d31d3259a32bfcc3be0ba198c72ff906db (patch)
treeec35fb768a1459b7ec3e6e8fd90130df7f1b979f /io
parent228cfb018a162ad3df239f4cb7f2ed2368b6da5e (diff)
downloadglibc-ac5c94d31d3259a32bfcc3be0ba198c72ff906db.tar.gz
glibc-ac5c94d31d3259a32bfcc3be0ba198c72ff906db.tar.xz
glibc-ac5c94d31d3259a32bfcc3be0ba198c72ff906db.zip
Alsways include <bits/types.h> in <fcntl.h>.
Move include of <bits/types.h> to the top and include it unconditionally.
Diffstat (limited to 'io')
-rw-r--r--io/fcntl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/io/fcntl.h b/io/fcntl.h
index c7d5e6972c..81f34bfbd7 100644
--- a/io/fcntl.h
+++ b/io/fcntl.h
@@ -27,6 +27,9 @@
 /* This must be early so <bits/fcntl.h> can define types winningly.  */
 __BEGIN_DECLS
 
+/* Get __mode_t, __dev_t and __off_t  .*/
+#include <bits/types.h>
+
 /* Get the definitions of O_*, F_*, FD_*: all the
    numbers and flag bits for `open', `fcntl', et al.  */
 #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.  */
 #if defined __USE_XOPEN || defined __USE_XOPEN2K8
-# include <bits/types.h>         /* For __mode_t and __dev_t.  */
 # define __need_timespec
 # include <time.h>
 # include <bits/stat.h>