config/arch/avr32.in
author Esben Haabendal <eha@dev.doredevelopment.dk>
Wed Apr 06 20:15:23 2011 +0200 (2011-04-06)
changeset 2379 372245834071
parent 1716 6bbf206a5b57
child 2444 896cb0d36c1a
permissions -rw-r--r--
libc/glibc: workaround for autoconf'ed define of caddr_t

When building canadian cross compiler, I have some trouble with
configure defining caddr_t as a macro, like:
#define caddr_t char *

When combined with the types.h where caddr_t is protected together
with daddr_t, the typedef of caddr_t breaks.

This patch works around it by protecting the caddr_t typedef
specifically.

I am uncertain as to the real cause and solution to this :-(

Signed-off-by: Esben Haabendal <eha@dev.doredevelopment.dk>
mgl@1371
     1
# AVR32 specific configuration file
mgl@1371
     2
mgl@1371
     3
config ARCH_avr32
yann@1716
     4
    select ARCH_SUPPORTS_32
yann@1716
     5
    select ARCH_DEFAULT_32
mgl@1371
     6
    select ARCH_USE_MMU
mgl@1371
     7
    select ARCH_DEFAULT_BE
mgl@1468
     8
    select ARCH_SUPPORT_ARCH
mgl@1468
     9
    select ARCH_SUPPORT_CPU
mgl@1468
    10
    select ARCH_SUPPORT_TUNE
mgl@1468
    11
    select ARCH_SUPPORT_FPU
mgl@1468
    12
     help
mgl@1371
    13
      The AVR32 architecture, as defined by:
mgl@1371
    14
        http://www.atmel.com/products/avr32