mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-19 18:18:27 +02:00
33 lines
742 B
Diff
33 lines
742 B
Diff
|
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
|
||
|
|