From 36a2ba5ccd19f7a5449bf208ac97447de907fac3 Mon Sep 17 00:00:00 2001 From: kleink Date: Mon, 20 Oct 2003 22:16:33 +0000 Subject: [PATCH] Need to make sure __sysconf() has C linkage. --- sys/sys/shm.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/sys/shm.h b/sys/sys/shm.h index eb8a6ceca70a..9c472fac5d5d 100644 --- a/sys/sys/shm.h +++ b/sys/sys/shm.h @@ -1,4 +1,4 @@ -/* $NetBSD: shm.h,v 1.34 2003/05/31 11:49:26 bjh21 Exp $ */ +/* $NetBSD: shm.h,v 1.35 2003/10/20 22:16:33 kleink Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -75,6 +75,7 @@ #ifndef _SYS_SHM_H_ #define _SYS_SHM_H_ +#include #include #include @@ -90,7 +91,9 @@ * page size. The value of _SC_PAGESIZE is 28 -- we hard code it so we do not * need to include unistd.h */ +__BEGIN_DECLS long __sysconf __P((int)); +__END_DECLS #define SHMLBA (__sysconf(28)) #endif @@ -187,8 +190,6 @@ int shmctl1 __P((struct proc *, int, int, struct shmid_ds *)); int shmat1 __P((struct proc *, int, const void *, int, vaddr_t *, int)); #else /* !_KERNEL */ -#include - __BEGIN_DECLS void *shmat __P((int, const void *, int)); int shmctl __P((int, int, struct shmid_ds *)) __RENAME(__shmctl13);