Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Make this capable of being included without pre-requ...



details:   https://anonhg.NetBSD.org/src/rev/890d92c6ddfe
branches:  trunk
changeset: 516120:890d92c6ddfe
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Oct 16 15:52:19 2001 +0000

description:
Make this capable of being included without pre-requisite headers.

diffstat:

 sys/sys/uio.h |  20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diffs (42 lines):

diff -r 5b90b4672191 -r 890d92c6ddfe sys/sys/uio.h
--- a/sys/sys/uio.h     Tue Oct 16 15:40:53 2001 +0000
+++ b/sys/sys/uio.h     Tue Oct 16 15:52:19 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uio.h,v 1.20 1999/03/28 17:47:06 kleink Exp $  */
+/*     $NetBSD: uio.h,v 1.21 2001/10/16 15:52:19 kleink Exp $  */
 
 /*
  * Copyright (c) 1982, 1986, 1993, 1994
@@ -38,14 +38,32 @@
 #ifndef _SYS_UIO_H_
 #define        _SYS_UIO_H_
 
+#include <machine/ansi.h>
 #include <sys/featuretest.h>
 
+#ifdef _BSD_SIZE_T_
+typedef        _BSD_SIZE_T_    size_t;
+#undef _BSD_SIZE_T_
+#endif
+
+#ifdef _BSD_SSIZE_T_
+typedef        _BSD_SSIZE_T_   ssize_t;
+#undef _BSD_SSIZE_T_
+#endif
+
 struct iovec {
        void    *iov_base;      /* Base address. */
        size_t   iov_len;       /* Length. */
 };
 
 #if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
+#include <sys/ansi.h>
+
+#ifndef        off_t
+typedef        __off_t         off_t;  /* file offset */
+#define        off_t           __off_t
+#endif
+
 enum   uio_rw { UIO_READ, UIO_WRITE };
 
 /* Segment flag values. */



Home | Main Index | Thread Index | Old Index