summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/kmod/kmod/fix-undefined-O_CLOEXEC.patch
diff options
context:
space:
mode:
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.patch17
1 files changed, 17 insertions, 0 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
new file mode 100644
index 0000000000..3177e9a1a9
--- /dev/null
+++ b/meta/recipes-kernel/kmod/kmod/fix-undefined-O_CLOEXEC.patch
@@ -0,0 +1,17 @@
1Upstream-Status: Not applicable
2
3Index: git/libkmod/libkmod-private.h
4===================================================================
5--- git.orig/libkmod/libkmod-private.h
6+++ git/libkmod/libkmod-private.h
7@@ -1,6 +1,10 @@
8 #ifndef _LIBKMOD_PRIVATE_H_
9 #define _LIBKMOD_PRIVATE_H_
10
11+#ifndef O_CLOEXEC
12+# define O_CLOEXEC 0
13+#endif
14+
15 #include <stdbool.h>
16 #include <stdio.h>
17 #include <syslog.h>