diff options
Diffstat (limited to 'recipes-extended/diod/files/0001-diod-ops.c-add-header-file-for-makedev.patch')
| -rw-r--r-- | recipes-extended/diod/files/0001-diod-ops.c-add-header-file-for-makedev.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/recipes-extended/diod/files/0001-diod-ops.c-add-header-file-for-makedev.patch b/recipes-extended/diod/files/0001-diod-ops.c-add-header-file-for-makedev.patch new file mode 100644 index 00000000..e6f7ece2 --- /dev/null +++ b/recipes-extended/diod/files/0001-diod-ops.c-add-header-file-for-makedev.patch | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | From f75836731d6051d85e6317eb4c12465bafb4973e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "Hongzhi.Song" <hongzhi.song@windriver.com> | ||
| 3 | Date: Fri, 31 Aug 2018 05:47:02 -0400 | ||
| 4 | Subject: [PATCH] diod/ops.c: add header file for makedev | ||
| 5 | |||
| 6 | Error: | ||
| 7 | diod/ops.c:845: undefined reference to `makedev' | ||
| 8 | |||
| 9 | Fixed: | ||
| 10 | Glibc removes sys/sysmacros.h which defines makedev from sys/types.h | ||
| 11 | since v2.28. [Commit ID: e16deca62e16f] | ||
| 12 | |||
| 13 | And then glibc suggestions us to include <sys/sysmacros.h> directly if | ||
| 14 | code needs it. | ||
| 15 | |||
| 16 | Upstream-Status: Submitted | ||
| 17 | [diod: | ||
| 18 | mail: v9fs-developer@lists.sourceforge.net | ||
| 19 | author: hongzhi.song@windriver.com] | ||
| 20 | |||
| 21 | Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com> | ||
| 22 | --- | ||
| 23 | diod/ops.c | 1 + | ||
| 24 | 1 file changed, 1 insertion(+) | ||
| 25 | |||
| 26 | diff --git a/diod/ops.c b/diod/ops.c | ||
| 27 | index c6c8291..469a502 100644 | ||
| 28 | --- a/diod/ops.c | ||
| 29 | +++ b/diod/ops.c | ||
| 30 | @@ -74,6 +74,7 @@ | ||
| 31 | #include <pthread.h> | ||
| 32 | #include <errno.h> | ||
| 33 | #include <sys/types.h> | ||
| 34 | +#include <sys/sysmacros.h> | ||
| 35 | |||
| 36 | #ifdef __FreeBSD__ | ||
| 37 | #if !__BSD_VISIBLE | ||
| 38 | -- | ||
| 39 | 2.8.1 | ||
| 40 | |||
