summaryrefslogtreecommitdiff
path: root/toolchain/glibc/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-08-08 20:38:10 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-08-08 20:38:56 +0200
commitb49d43a13394f1f39ce580f9ace26fee182f44be (patch)
treeb36c812e4c43c717bbccfee320a552310a3edb4e /toolchain/glibc/patches
parent8985104b98e1c304af508ad77b0e4afe619c3460 (diff)
fix microblaze compile from glibc git
Diffstat (limited to 'toolchain/glibc/patches')
-rw-r--r--toolchain/glibc/patches/2.22/sysdep-include-microblaze.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/toolchain/glibc/patches/2.22/sysdep-include-microblaze.patch b/toolchain/glibc/patches/2.22/sysdep-include-microblaze.patch
new file mode 100644
index 000000000..8d02493af
--- /dev/null
+++ b/toolchain/glibc/patches/2.22/sysdep-include-microblaze.patch
@@ -0,0 +1,22 @@
+diff -Nur glibc-2.22.orig/sysdeps/unix/sysv/linux/microblaze/sysdep.h glibc-2.22/sysdeps/unix/sysv/linux/microblaze/sysdep.h
+--- glibc-2.22.orig/sysdeps/unix/sysv/linux/microblaze/sysdep.h 2015-08-05 08:42:21.000000000 +0200
++++ glibc-2.22/sysdeps/unix/sysv/linux/microblaze/sysdep.h 2015-08-08 10:00:04.148568537 +0200
+@@ -16,8 +16,11 @@
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
++#ifndef _LINUX_MICROBLAZE_SYSDEP_H
++#define _LINUX_MICROBLAZE_SYSDEP_H 1
++
++#include <sysdeps/unix/sysdep.h>
+ #include <sysdeps/microblaze/sysdep.h>
+-#include <sys/syscall.h>
+
+ /* Defines RTLD_PRIVATE_ERRNO. */
+ #include <dl-sysdep.h>
+@@ -305,3 +308,5 @@
+ # define PTR_DEMANGLE(var) (void) (var)
+
+ #endif /* not __ASSEMBLER__ */
++
++#endif /* _LINUX_MICROBLAZE_SYSDEP_H */