diff options
| -rw-r--r-- | meta/recipes-kernel/kmod/kmod-native_git.bb | 3 | ||||
| -rw-r--r-- | meta/recipes-kernel/kmod/kmod/fix-undefined-O_CLOEXEC.patch | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/meta/recipes-kernel/kmod/kmod-native_git.bb b/meta/recipes-kernel/kmod/kmod-native_git.bb index 96de8b8ef4..8cbcdf8ad7 100644 --- a/meta/recipes-kernel/kmod/kmod-native_git.bb +++ b/meta/recipes-kernel/kmod/kmod-native_git.bb | |||
| @@ -4,7 +4,8 @@ | |||
| 4 | require kmod.inc | 4 | require kmod.inc |
| 5 | inherit native | 5 | inherit native |
| 6 | 6 | ||
| 7 | PR = "${INC_PR}.0" | 7 | PR = "${INC_PR}.1" |
| 8 | SRC_URI += "file://fix-undefined-O_CLOEXEC.patch" | ||
| 8 | 9 | ||
| 9 | do_install_append (){ | 10 | do_install_append (){ |
| 10 | for tool in depmod insmod lsmod modinfo modprobe rmmod | 11 | for tool in depmod insmod lsmod modinfo modprobe rmmod |
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 @@ | |||
| 1 | Upstream-Status: Not applicable | ||
| 2 | |||
| 3 | Index: 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> | ||
