[uClibc] shm.h patch for "conflicts with new declaration with C linkage"

Erik Andersen andersen at codepoet.org
Tue Aug 5 18:51:36 UTC 2003


On Tue Aug 05, 2003 at 11:21:41AM -0700, David Wuertele wrote:
> Patch that makes Symptom go away:
> 
> --- uClibc/libc/sysdeps/linux/common/bits/shm.h.orig	2003-08-01 02:13:41.000000000 -0700
> +++ uClibc/libc/sysdeps/linux/common/bits/shm.h	2003-08-05 10:17:55.000000000 -0700
> @@ -35,10 +35,13 @@
>  #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

Applied thanks,

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list