Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/sys Pull up revision 1.33 (requested by kleink in t...
details: https://anonhg.NetBSD.org/src/rev/61f4df53c488
branches: netbsd-1-6
changeset: 530350:61f4df53c488
user: grant <grant%NetBSD.org@localhost>
date: Thu Jun 19 01:35:13 2003 +0000
description:
Pull up revision 1.33 (requested by kleink in ticket #1301):
Include <sys/unistd.h> for the definition of _SC_PAGESIZE, which is
required for run-time retrieval of SHMLBA. While this does make visible
additional symbols which are not in the underscore-prefixed
implementation-reserved namespace, its impact should be negligible (and
most applications supposedly include <unistd.h> as well), and there is
prior art to that. Fixes PR kern/19135 from Chris Demetriou.
diffstat:
sys/sys/shm.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 64191dce591f -r 61f4df53c488 sys/sys/shm.h
--- a/sys/sys/shm.h Thu Jun 19 01:31:50 2003 +0000
+++ b/sys/sys/shm.h Thu Jun 19 01:35:13 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: shm.h,v 1.30 2002/04/03 11:50:51 fvdl Exp $ */
+/* $NetBSD: shm.h,v 1.30.4.1 2003/06/19 01:35:13 grant Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -86,6 +86,7 @@
#define SHMLBA PAGE_SIZE
#else
/* Use libc's internal __sysconf() to retrieve the machine's page size */
+#include <sys/unistd.h> /* for _SC_PAGESIZE */
long __sysconf __P((int));
#define SHMLBA (__sysconf(_SC_PAGESIZE))
#endif
Home |
Main Index |
Thread Index |
Old Index