protect against multiple declarations.

This commit is contained in:
christos 2000-12-18 21:20:35 +00:00
parent 7cc029e16c
commit 761a522cde
1 changed files with 4 additions and 1 deletions

View File

@ -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 @@ union __semun {
* 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 ftruncate __P((int, off_t));
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)