about summary refs log tree commit diff
path: root/io
diff options
context:
space:
mode:
Diffstat (limited to 'io')
-rw-r--r--io/fcntl.h4
-rw-r--r--io/sys/stat.h9
-rw-r--r--io/utime.h4
3 files changed, 11 insertions, 6 deletions
diff --git a/io/fcntl.h b/io/fcntl.h
index 7c654c0503..9f9fe8d50c 100644
--- a/io/fcntl.h
+++ b/io/fcntl.h
@@ -32,8 +32,8 @@ __BEGIN_DECLS
    numbers and flag bits for `open', `fcntl', et al.  */
 #include <bits/fcntl.h>
 
-/* For Unix98 all symbols from <sys/stat.h> should also be available.  */
-#ifdef __USE_UNIX98
+/* For XPG all symbols from <sys/stat.h> should also be available.  */
+#ifdef __USE_XOPEN
 # include <sys/stat.h>
 #endif
 
diff --git a/io/sys/stat.h b/io/sys/stat.h
index 0847c0c7b8..ab27f7c5fc 100644
--- a/io/sys/stat.h
+++ b/io/sys/stat.h
@@ -27,7 +27,10 @@
 
 #include <bits/types.h>		/* For __mode_t and __dev_t.  */
 
-#ifdef __USE_UNIX98
+#ifdef __USE_XOPEN
+# define __need_time_t
+# include <time.h>		/* For time_t.  */
+
 /* The Single Unix specification says that some more types are
    available here.  */
 # ifndef dev_t
@@ -72,7 +75,9 @@ typedef __off64_t off_t;
 typedef __uid_t uid_t;
 #  define uid_t uid_t
 # endif
+#endif	/* X/Open */
 
+#ifdef __USE_UNIX98
 # ifndef pid_t
 typedef __pid_t pid_t;
 #  define pid_t pid_t
@@ -83,7 +88,7 @@ __BEGIN_DECLS
 
 #include <bits/stat.h>
 
-#if defined __USE_BSD || defined __USE_MISC || defined __USE_UNIX98
+#if defined __USE_BSD || defined __USE_MISC || defined __USE_XOPEN
 # define S_IFMT		__S_IFMT
 # define S_IFDIR	__S_IFDIR
 # define S_IFCHR	__S_IFCHR
diff --git a/io/utime.h b/io/utime.h
index 3bfdd092a8..bc82bcad7b 100644
--- a/io/utime.h
+++ b/io/utime.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -29,7 +29,7 @@ __BEGIN_DECLS
 
 #include <bits/types.h>
 
-#ifdef __USE_UNIX98
+#ifdef __USE_XOPEN
 # define __need_time_t
 # include <time.h>
 #endif