diff options
Diffstat (limited to 'meta/recipes-kernel/kmod/kmod/fix-O_CLOEXEC.patch')
-rw-r--r-- | meta/recipes-kernel/kmod/kmod/fix-O_CLOEXEC.patch | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/meta/recipes-kernel/kmod/kmod/fix-O_CLOEXEC.patch b/meta/recipes-kernel/kmod/kmod/fix-O_CLOEXEC.patch deleted file mode 100644 index 07e4a1f538..0000000000 --- a/meta/recipes-kernel/kmod/kmod/fix-O_CLOEXEC.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | From 5f55e6806cd8ae1a6c8ec1e6cb38ad292cfc1df9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
3 | Date: Wed, 22 Jan 2014 01:06:40 -0500 | ||
4 | Subject: [PATCH] libkmod/libkmod-internal.h: check whether O_CLOEXEC is | ||
5 | defined or not | ||
6 | |||
7 | O_CLOEXEC is introduced from Linux 2.6.23, so old kernel doesn't have | ||
8 | it, we need check before use. | ||
9 | |||
10 | This patch is much more like a workaround, since it may need fcntl() use | ||
11 | FD_CLOEXEC to replace. | ||
12 | |||
13 | This problem was reported by "Ting Liu <b28495@freescale.com>" | ||
14 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
15 | |||
16 | Upstream-Status: Pending | ||
17 | |||
18 | --- | ||
19 | libkmod/libkmod-internal.h | 4 ++++ | ||
20 | 1 file changed, 4 insertions(+) | ||
21 | |||
22 | diff --git a/libkmod/libkmod-internal.h b/libkmod/libkmod-internal.h | ||
23 | index a65ddd1..a4f4b77 100644 | ||
24 | --- a/libkmod/libkmod-internal.h | ||
25 | +++ b/libkmod/libkmod-internal.h | ||
26 | @@ -10,6 +10,10 @@ | ||
27 | |||
28 | #include "libkmod.h" | ||
29 | |||
30 | +#ifndef O_CLOEXEC | ||
31 | +#define O_CLOEXEC 0 | ||
32 | +#endif | ||
33 | + | ||
34 | static _always_inline_ _printf_format_(2, 3) void | ||
35 | kmod_log_null(struct kmod_ctx *ctx, const char *format, ...) {} | ||
36 | |||