diff options
Diffstat (limited to 'meta/recipes-kernel/kmod/kmod/fix-undefined-O_CLOEXEC.patch')
-rw-r--r-- | meta/recipes-kernel/kmod/kmod/fix-undefined-O_CLOEXEC.patch | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/meta/recipes-kernel/kmod/kmod/fix-undefined-O_CLOEXEC.patch b/meta/recipes-kernel/kmod/kmod/fix-undefined-O_CLOEXEC.patch index 3177e9a1a9..0268216230 100644 --- a/meta/recipes-kernel/kmod/kmod/fix-undefined-O_CLOEXEC.patch +++ b/meta/recipes-kernel/kmod/kmod/fix-undefined-O_CLOEXEC.patch | |||
@@ -2,16 +2,16 @@ Upstream-Status: Not applicable | |||
2 | 2 | ||
3 | Index: git/libkmod/libkmod-private.h | 3 | Index: git/libkmod/libkmod-private.h |
4 | =================================================================== | 4 | =================================================================== |
5 | --- git.orig/libkmod/libkmod-private.h | 5 | --- git.orig/libkmod/libkmod-private.h 2013-08-21 10:07:51.000000000 -0700 |
6 | +++ git/libkmod/libkmod-private.h | 6 | +++ git/libkmod/libkmod-private.h 2013-08-21 14:34:04.558278849 -0700 |
7 | @@ -1,6 +1,10 @@ | 7 | @@ -9,6 +9,10 @@ |
8 | #ifndef _LIBKMOD_PRIVATE_H_ | 8 | #include "macro.h" |
9 | #define _LIBKMOD_PRIVATE_H_ | 9 | #include "libkmod.h" |
10 | 10 | ||
11 | +#ifndef O_CLOEXEC | 11 | +#ifndef O_CLOEXEC |
12 | +# define O_CLOEXEC 0 | 12 | +# define O_CLOEXEC 0 |
13 | +#endif | 13 | +#endif |
14 | + | 14 | + |
15 | #include <stdbool.h> | 15 | static _always_inline_ _printf_format_(2, 3) void |
16 | #include <stdio.h> | 16 | kmod_log_null(struct kmod_ctx *ctx, const char *format, ...) {} |
17 | #include <syslog.h> | 17 | |