avr32: fix uclibc build using recent kernel headers
authorSimon Dawson <spdawson@gmail.com>
Fri, 8 Nov 2013 09:42:03 +0000 (09:42 +0000)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 10 Nov 2013 09:06:28 +0000 (10:06 +0100)
commitcad987f4cbb37727aa0dbf62f2ed5fee5a057468
treee854e6341d300af11df355bd4030321aa8cc3d93
parent058f37fb6af5af5e6991f670106007167c2435e3
avr32: fix uclibc build using recent kernel headers

Using kernel headers newer than 3.6.x, uclibc 0.9.31.1 fails to build:

  In file included from output/host/usr/avr32-buildroot-linux-uclibc/sysroot/usr/include/linux/rtnetlink.h:6,
                 from libc/inet/netlinkaccess.h:34,
                 from libc/inet/if_index.c:36:
  output/host/usr/avr32-buildroot-linux-uclibc/sysroot/usr/include/linux/if_link.h:314: error: expected specifier-qualifier-list before '__be16'
  make[1]: *** [libc/inet/if_index.os] Error 1
  make[1]: Leaving directory `output/build/uclibc-0.9.31.1'
  make: *** [output/build/uclibc-0.9.31.1/.stamp_built] Error 2

This patch adjusts the system type definitions in the netlinkaccess.h
header, updating the types to match those used in uClibc 0.9.33.2.

Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/uclibc/0.9.31.1/uClibc-0012-netlinkaccess-header-types.patch.avr32 [new file with mode: 0644]