This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
# HG changeset patch # User Bart vdr. Meulen <bartvdrmeulen@gmail.com> # Date 1305381590 -7200 # Node ID c71e6aca3e70374c7f1c69bcb8f480d9f9422845 # Parent da5ae72ff531520f053f4293658a543011d8740e mingwrt patch for gcc4.4.x cross compilation Add daddr_t and caddr_t typedef to sys/types.h These are needed for correct (canadian) cross compilation of libgcc During compilation of crtbegin and crtend the build-target compiler is used, while the auto-host.h is included. Without the patch, auto-host.h while define caddr_t, the host-target compiler also as the typedef set. This results in a conflicting typedef in in gcc's own sys/types.h during the compilation Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com> --- patches/mingwrt/3.18/100-update-sys-types.patch | 25 +++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) create mode 100644 patches/mingwrt/3.18/100-update-sys-types.patch diff --git a/patches/mingwrt/3.18/100-update-sys-types.patch b/patches/mingwrt/3.18/100-update-sys-types.patch new file mode 100644 --- /dev/null +++ b/patches/mingwrt/3.18/100-update-sys-types.patch @@ -0,0 +1,25 @@ +Add daddr_t and caddr_t typedef to sys/types.h + +These are needed for correct (canadian) cross compilation of libgcc +During compilation of crtbegin and crtend the build-target compiler +is used, while the auto-host.h is included. + +Without the patch, auto-host.h while define caddr_t, the host-target compiler +also as the typedef set. This results in a conflicting typedef in in gcc's own +sys/types.h during the compilation + +Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com> + +diff -uNr mingwrt-3.18-mingw32.orig/include/sys/types.h mingwrt-3.18-mingw/include/sys/types.h +--- mingwrt-3.18-mingw32.orig/include/sys/types.h 2010-11-13 22:20:46.696332007 +0100 ++++ mingwrt-3.18-mingw32/include/sys/types.h 2010-11-13 22:37:55.836332007 +0100 +@@ -14,6 +14,9 @@ + /* All the headers include this file. */ + #include <_mingw.h> + ++typedef int daddr_t; ++typedef char * caddr_t; ++ + #define __need_wchar_t + #define __need_size_t + #define __need_ptrdiff_t -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |