projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
create {hp300,i386,tahoe,vax}/include/ansi.h
[unix-history]
/
usr
/
src
/
sys
/
sys
/
types.h
diff --git
a/usr/src/sys/sys/types.h
b/usr/src/sys/sys/types.h
index
4ae9f4f
..
fa46d30
100644
(file)
--- a/
usr/src/sys/sys/types.h
+++ b/
usr/src/sys/sys/types.h
@@
-3,7
+3,7
@@
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)types.h 7.1
3
(Berkeley) %G%
+ * @(#)types.h 7.1
4
(Berkeley) %G%
*/
#ifndef _TYPES_H_
*/
#ifndef _TYPES_H_
@@
-25,23
+25,26
@@
typedef unsigned int u_int;
typedef unsigned long u_long;
typedef unsigned short ushort; /* Sys V compatibility */
typedef unsigned long u_long;
typedef unsigned short ushort; /* Sys V compatibility */
+#include <machine/ansi.h>
+#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
#include <machine/types.h>
#include <machine/types.h>
+#endif
#ifdef _CLOCK_T_
typedef _CLOCK_T_ clock_t;
#undef _CLOCK_T_
#endif
#ifdef _CLOCK_T_
typedef _CLOCK_T_ clock_t;
#undef _CLOCK_T_
#endif
-#ifdef _TIME_T_
-typedef _TIME_T_ time_t;
-#undef _TIME_T_
-#endif
-
#ifdef _SIZE_T_
typedef _SIZE_T_ size_t;
#undef _SIZE_T_
#endif
#ifdef _SIZE_T_
typedef _SIZE_T_ size_t;
#undef _SIZE_T_
#endif
+#ifdef _TIME_T_
+typedef _TIME_T_ time_t;
+#undef _TIME_T_
+#endif
+
#ifndef _POSIX_SOURCE
typedef struct _uquad { unsigned long val[2]; } u_quad;
typedef struct _quad { long val[2]; } quad;
#ifndef _POSIX_SOURCE
typedef struct _uquad { unsigned long val[2]; } u_quad;
typedef struct _quad { long val[2]; } quad;