Root/toolchain/uClibc/patches-0.9.32/160-mips_signalfd_sfd_nonblock.patch

1From f87898ca4a7d4b7171779c06ff1f4848efeee431 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 30 Jun 2011 07:32:11 +0000
4Subject: mips/signalfd.h: SFD_NONBLOCK for mips is 0200 unlike 04000 commonly
5
6Exposed by udev 171 which uses signalfd
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10diff --git a/include/sys/signalfd.h b/include/sys/signalfd.h
11index 8cee17c..f1cb63a 100644
12--- a/include/sys/signalfd.h
13+++ b/include/sys/signalfd.h
14@@ -64,6 +64,15 @@ enum
15 # define SFD_NONBLOCK SFD_NONBLOCK
16   };
17 
18+#elif defined __mips__
19+enum
20+ {
21+ SFD_CLOEXEC = 02000000,
22+# define SFD_CLOEXEC SFD_CLOEXEC
23+ SFD_NONBLOCK = 0200
24+# define SFD_NONBLOCK SFD_NONBLOCK
25+ };
26+
27 #else
28 enum
29   {
30--
31cgit v0.9.0.1-2-gef13
32
33

Archive Download this file



interactive