summaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/uClibc-0.9.33.2-dup3.patch
diff options
context:
space:
mode:
authorSimon Dawson <spdawson@gmail.com>2013-01-20 11:55:41 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-02-02 14:45:16 +0100
commitd7937773fd85daa675290816af981ff0079f21b8 (patch)
tree3dbbacb859fc1003d28529eece0da7782d8bed8e /toolchain/uClibc/uClibc-0.9.33.2-dup3.patch
parenta84075b5f48b35c1449f17fdedc63b5c7bf6ab0c (diff)
downloadbuildroot-novena-d7937773fd85daa675290816af981ff0079f21b8.tar.gz
buildroot-novena-d7937773fd85daa675290816af981ff0079f21b8.zip
avr32: support uClibc 0.9.33.2
Add a uClibc patch from OpenWRT, and tweak an existing patch to cope with the lack of a dup3 Linux syscall on avr32. This allow uClibc 0.9.33.2 to be built for avr32. [Peter: add upstream url for openwrt patch] Signed-off-by: Simon Dawson <spdawson@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'toolchain/uClibc/uClibc-0.9.33.2-dup3.patch')
-rw-r--r--toolchain/uClibc/uClibc-0.9.33.2-dup3.patch4
1 files changed, 3 insertions, 1 deletions
diff --git a/toolchain/uClibc/uClibc-0.9.33.2-dup3.patch b/toolchain/uClibc/uClibc-0.9.33.2-dup3.patch
index 66b419e2b..87fe2a679 100644
--- a/toolchain/uClibc/uClibc-0.9.33.2-dup3.patch
+++ b/toolchain/uClibc/uClibc-0.9.33.2-dup3.patch
@@ -29,7 +29,7 @@ new file mode 100644
index 0000000..5fdab2e
--- /dev/null
+++ b/libc/sysdeps/linux/common/dup3.c
-@@ -0,0 +1,15 @@
+@@ -0,0 +1,17 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * dup3() for uClibc
@@ -43,8 +43,10 @@ index 0000000..5fdab2e
+#include <unistd.h>
+
+
++#ifdef __NR_dup3
+_syscall3(int, dup3, int, oldfd, int, newfd, int, flags)
+libc_hidden_def(dup3)
++#endif
--
1.7.5.4