public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] libc/eglibc-2.15: add caddr_t protection (include/sys/types.h)
@ 2012-06-12  9:39 Matthieu
  0 siblings, 0 replies; only message in thread
From: Matthieu @ 2012-06-12  9:39 UTC (permalink / raw)
  To: crossgcc

# HG changeset patch
# User Matthieu Crapet <mcrapet@gmail.com>
# Date 1339491615 -7200
# Node ID 7c05f9fdfdefa8d2d179c15f23f9aa0a2f04eb93
# Parent  d10afc5bcc2523f54f4af71f74d9a3920a680288
libc/eglibc-2.15: add caddr_t protection (include/sys/types.h)

Troubles happen on mingw32 host/target.

Related thread:
http://sourceware.org/ml/crossgcc/2011-12/msg00073.html

Similar patches can be found in:
crosstool-ng-linaro-1.13.1-2012.05-20120523/contrib/linaro/patches/prebuild/

Signed-off-by: Matthieu Crapet <mcrapet@gmail.com>

diff -r d10afc5bcc25 -r 7c05f9fdfdef
patches/eglibc/2_15/200-caddr_t_protection.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/eglibc/2_15/200-caddr_t_protection.patch	Tue Jun 12
11:00:15 2012 +0200
@@ -0,0 +1,17 @@
+Workaround for mingw32 related builds
+
+diff --git a/libc/posix/sys/types.h b/libc/posix/sys/types.h
+index a7e9084..da97bc8 100644
+--- a/posix/sys/types.h
++++ b/posix/sys/types.h
+@@ -114,7 +114,10 @@ typedef __ssize_t ssize_t;
+ #ifdef	__USE_BSD
+ # ifndef __daddr_t_defined
+ typedef __daddr_t daddr_t;
++#  if !defined(caddr_t) && !defined(__caddr_t_defined)
+ typedef __caddr_t caddr_t;
++#  define __caddr_t_defined
++#  endif
+ #  define __daddr_t_defined
+ # endif
+ #endif

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-06-12  9:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-12  9:39 [PATCH] libc/eglibc-2.15: add caddr_t protection (include/sys/types.h) Matthieu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).