aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/patches-0.9.32/160-mips_signalfd_sfd_nonblock.patch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2011-08-25 15:59:21 +0000
committerFlorian Fainelli <florian@openwrt.org>2011-08-25 15:59:21 +0000
commitfe3694aa0d2b2883b026e2b603f4da1bf8d17e5a (patch)
treeaeb7a00695541bf515efa08665047358212cd990 /toolchain/uClibc/patches-0.9.32/160-mips_signalfd_sfd_nonblock.patch
parentcc037a5e27bd9b9f298eb830c93d61927a8f671e (diff)
downloadupstream-fe3694aa0d2b2883b026e2b603f4da1bf8d17e5a.tar.gz
upstream-fe3694aa0d2b2883b026e2b603f4da1bf8d17e5a.tar.bz2
upstream-fe3694aa0d2b2883b026e2b603f4da1bf8d17e5a.zip
uclibc: backport upstream signalfd patch
SVN-Revision: 28087
Diffstat (limited to 'toolchain/uClibc/patches-0.9.32/160-mips_signalfd_sfd_nonblock.patch')
-rw-r--r--toolchain/uClibc/patches-0.9.32/160-mips_signalfd_sfd_nonblock.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches-0.9.32/160-mips_signalfd_sfd_nonblock.patch b/toolchain/uClibc/patches-0.9.32/160-mips_signalfd_sfd_nonblock.patch
new file mode 100644
index 0000000000..6cc97b9915
--- /dev/null
+++ b/toolchain/uClibc/patches-0.9.32/160-mips_signalfd_sfd_nonblock.patch
@@ -0,0 +1,32 @@
+From f87898ca4a7d4b7171779c06ff1f4848efeee431 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Thu, 30 Jun 2011 07:32:11 +0000
+Subject: mips/signalfd.h: SFD_NONBLOCK for mips is 0200 unlike 04000 commonly
+
+Exposed by udev 171 which uses signalfd
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+diff --git a/include/sys/signalfd.h b/include/sys/signalfd.h
+index 8cee17c..f1cb63a 100644
+--- a/include/sys/signalfd.h
++++ b/include/sys/signalfd.h
+@@ -64,6 +64,15 @@ enum
+ # define SFD_NONBLOCK SFD_NONBLOCK
+ };
+
++#elif defined __mips__
++enum
++ {
++ SFD_CLOEXEC = 02000000,
++# define SFD_CLOEXEC SFD_CLOEXEC
++ SFD_NONBLOCK = 0200
++# define SFD_NONBLOCK SFD_NONBLOCK
++ };
++
+ #else
+ enum
+ {
+--
+cgit v0.9.0.1-2-gef13
+