From 5eef5dca2c58f9998c53ae27264733b151fc3d1c Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 5 Aug 2003 18:51:16 +0000 Subject: Patch from David Wuertele to prevent "conflicts with new declaration with C linkage" problems with C++ --- libc/sysdeps/linux/common/bits/shm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libc/sysdeps/linux/common/bits/shm.h b/libc/sysdeps/linux/common/bits/shm.h index c7e415726..6edc6763d 100644 --- a/libc/sysdeps/linux/common/bits/shm.h +++ b/libc/sysdeps/linux/common/bits/shm.h @@ -35,10 +35,14 @@ #define SHM_LOCK 11 /* lock segment (root only) */ #define SHM_UNLOCK 12 /* unlock segment (root only) */ +__BEGIN_DECLS + /* Segment low boundary address multiple. */ #define SHMLBA (__getpagesize ()) extern int __getpagesize (void) __THROW __attribute__ ((__const__)); +__END_DECLS + /* Type to count number of attaches. */ typedef unsigned short shmatt_t; -- cgit v1.2.3