Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Need to make sure __sysconf() has C linkage.
details: https://anonhg.NetBSD.org/src/rev/74ba634cd802
branches: trunk
changeset: 553715:74ba634cd802
user: kleink <kleink%NetBSD.org@localhost>
date: Mon Oct 20 22:16:33 2003 +0000
description:
Need to make sure __sysconf() has C linkage.
diffstat:
sys/sys/shm.h | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r c95aa362e1ec -r 74ba634cd802 sys/sys/shm.h
--- a/sys/sys/shm.h Mon Oct 20 17:56:35 2003 +0000
+++ b/sys/sys/shm.h Mon Oct 20 22:16:33 2003 +0000
@@ -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 <sys/cdefs.h>
#include <sys/featuretest.h>
#include <sys/ipc.h>
@@ -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 shmat1 __P((struct proc *, int, const void *, int, vaddr_t *, int));
#else /* !_KERNEL */
-#include <sys/cdefs.h>
-
__BEGIN_DECLS
void *shmat __P((int, const void *, int));
int shmctl __P((int, int, struct shmid_ds *)) __RENAME(__shmctl13);
Home |
Main Index |
Thread Index |
Old Index