ソースを参照

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;