Source-Changes-HG archive

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

[src/trunk]: src/sys/sys protect against multiple declarations.



details:   https://anonhg.NetBSD.org/src/rev/58a7f4bbf730
branches:  trunk
changeset: 500808:58a7f4bbf730
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Dec 18 21:20:35 2000 +0000

description:
protect against multiple declarations.

diffstat:

 sys/sys/types.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 650e044c5e97 -r 58a7f4bbf730 sys/sys/types.h
--- a/sys/sys/types.h   Mon Dec 18 21:17:44 2000 +0000
+++ b/sys/sys/types.h   Mon Dec 18 21:20:35 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.47 2000/09/19 08:35:36 kleink Exp $        */
+/*     $NetBSD: types.h,v 1.48 2000/12/18 21:20:35 christos Exp $      */
 
 /*-
  * Copyright (c) 1982, 1986, 1991, 1993, 1994
@@ -125,6 +125,8 @@
  * include that header or explicitly cast them to off_t.
  */
 #if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
+#ifndef __OFF_T_SYSCALLS_DECLARED
+#define __OFF_T_SYSCALLS_DECLARED
 #ifndef _KERNEL
 #include <sys/cdefs.h>
 __BEGIN_DECLS
@@ -133,6 +135,7 @@
 int     truncate __P((const char *, off_t));
 __END_DECLS
 #endif /* !_KERNEL */
+#endif /* __OFF_T_SYSCALLS_DECLARED */
 #endif /* !defined(_POSIX_SOURCE) ... */
 
 #if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)



Home | Main Index | Thread Index | Old Index