瀏覽代碼

Patch from David Wuertele to prevent "conflicts with new declaration with C
linkage" problems with C++

Eric Andersen 21 年之前
父節點
當前提交
5eef5dca2c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      libc/sysdeps/linux/common/bits/shm.h

+ 4 - 0
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;