diff options
author | Roman Yeryomin <roman@advem.lv> | 2013-07-04 11:13:43 +0300 |
---|---|---|
committer | Roman Yeryomin <roman@advem.lv> | 2013-07-04 11:13:43 +0300 |
commit | 511cc9ae87e18c38bda84cfd916d8b5af1f81654 (patch) | |
tree | 426f2fae51c69cc6dc70a11c12f25076d840eff3 | |
parent | 63bb0c0cb666cee59f662723c0f098d69efe5b3c (diff) |
Add patches to fix userspase compilation with gcc 4.5-linaro
Signed-off-by: Roman Yeryomin <roman@advem.lv>
-rw-r--r-- | target/linux/realtek/patches-2.6.30/fix-socket.h-and-un.h-for-gcc-4.5.patch | 24 | ||||
-rw-r--r-- | toolchain/kernel-headers/patches-2.6.30.9/fix-socket.h-and-un.h-for-gcc-4.5.patch | 24 |
2 files changed, 48 insertions, 0 deletions
diff --git a/target/linux/realtek/patches-2.6.30/fix-socket.h-and-un.h-for-gcc-4.5.patch b/target/linux/realtek/patches-2.6.30/fix-socket.h-and-un.h-for-gcc-4.5.patch new file mode 100644 index 000000000..088443d79 --- /dev/null +++ b/target/linux/realtek/patches-2.6.30/fix-socket.h-and-un.h-for-gcc-4.5.patch @@ -0,0 +1,24 @@ +--- linux-2.6.30.9/include/linux/socket.h 2013-07-04 11:06:14.564664035 +0300 ++++ linux-2.6.30.9/include/linux/socket.h 2013-07-04 11:05:14.634668886 +0300 +@@ -31,7 +31,9 @@ + # endif + #endif /* __KERNEL__ */ + ++#ifndef _LINUX_UN_H + typedef unsigned short sa_family_t; ++#endif + + /* + * 1003.1g requires sa_family_t and that sa_data is char. +--- linux-2.6.30.9/include/linux/un.h 2013-07-04 11:06:38.397662106 +0300 ++++ linux-2.6.30.9/include/linux/un.h 2013-07-04 11:06:24.052663267 +0300 +@@ -2,7 +2,9 @@ + #define _LINUX_UN_H + + #define UNIX_PATH_MAX 108 ++#ifndef _LINUX_SOCKET_H + typedef unsigned short sa_family_t; ++#endif + struct sockaddr_un { + sa_family_t sun_family; /* AF_UNIX */ + char sun_path[UNIX_PATH_MAX]; /* pathname */ diff --git a/toolchain/kernel-headers/patches-2.6.30.9/fix-socket.h-and-un.h-for-gcc-4.5.patch b/toolchain/kernel-headers/patches-2.6.30.9/fix-socket.h-and-un.h-for-gcc-4.5.patch new file mode 100644 index 000000000..088443d79 --- /dev/null +++ b/toolchain/kernel-headers/patches-2.6.30.9/fix-socket.h-and-un.h-for-gcc-4.5.patch @@ -0,0 +1,24 @@ +--- linux-2.6.30.9/include/linux/socket.h 2013-07-04 11:06:14.564664035 +0300 ++++ linux-2.6.30.9/include/linux/socket.h 2013-07-04 11:05:14.634668886 +0300 +@@ -31,7 +31,9 @@ + # endif + #endif /* __KERNEL__ */ + ++#ifndef _LINUX_UN_H + typedef unsigned short sa_family_t; ++#endif + + /* + * 1003.1g requires sa_family_t and that sa_data is char. +--- linux-2.6.30.9/include/linux/un.h 2013-07-04 11:06:38.397662106 +0300 ++++ linux-2.6.30.9/include/linux/un.h 2013-07-04 11:06:24.052663267 +0300 +@@ -2,7 +2,9 @@ + #define _LINUX_UN_H + + #define UNIX_PATH_MAX 108 ++#ifndef _LINUX_SOCKET_H + typedef unsigned short sa_family_t; ++#endif + struct sockaddr_un { + sa_family_t sun_family; /* AF_UNIX */ + char sun_path[UNIX_PATH_MAX]; /* pathname */ |