diff options
author | Tharre <tharre3@gmail.com> | 2023-04-25 07:16:33 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2023-04-25 07:16:33 +0200 |
commit | e92177a32cb23deded7fbbfc9722083ff46403f5 (patch) | |
tree | 9ad16412c14a7cfcdf3c0f1f138fa5053040e317 /diod/0002-diod-ops.c-add-header-file-for-makedev.patch | |
parent | 1a3e9b61e5bbf1f7cfcff24389c656e776fc9b51 (diff) | |
parent | 375eb9eaeee02cf1c732984a142c16606c296adf (diff) | |
download | pkgbuilds-e92177a32cb23deded7fbbfc9722083ff46403f5.tar.gz pkgbuilds-e92177a32cb23deded7fbbfc9722083ff46403f5.tar.xz pkgbuilds-e92177a32cb23deded7fbbfc9722083ff46403f5.zip |
Add 'diod/' from commit '375eb9eaeee02cf1c732984a142c16606c296adf'
git-subtree-dir: diod
git-subtree-mainline: 1a3e9b61e5bbf1f7cfcff24389c656e776fc9b51
git-subtree-split: 375eb9eaeee02cf1c732984a142c16606c296adf
Diffstat (limited to 'diod/0002-diod-ops.c-add-header-file-for-makedev.patch')
-rw-r--r-- | diod/0002-diod-ops.c-add-header-file-for-makedev.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/diod/0002-diod-ops.c-add-header-file-for-makedev.patch b/diod/0002-diod-ops.c-add-header-file-for-makedev.patch new file mode 100644 index 0000000..60deb3a --- /dev/null +++ b/diod/0002-diod-ops.c-add-header-file-for-makedev.patch @@ -0,0 +1,35 @@ +From 1c0a6a8b5698a49054cfebb6a670649b6e31f3db Mon Sep 17 00:00:00 2001 +From: "Hongzhi.Song" <hongzhi.song@windriver.com> +Date: Thu, 13 Sep 2018 09:05:11 -0400 +Subject: [PATCH 2/3] diod/ops.c: add header file for makedev + +Error: +diod/ops.c:845: undefined reference to `makedev' + +Fixed: +Glibc removes sys/sysmacros.h which defines makedev from sys/types.h +since v2.28. [Commit ID: e16deca62e16f] + +And then glibc suggestions us to include <sys/sysmacros.h> directly if +code needs it. + +Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com> +--- + diod/ops.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/diod/ops.c b/diod/ops.c +index 17aeaa5..c7fa80b 100644 +--- a/diod/ops.c ++++ b/diod/ops.c +@@ -74,6 +74,7 @@ + #include <pthread.h> + #include <errno.h> + #include <sys/types.h> ++#include <sys/sysmacros.h> + + #ifdef __FreeBSD__ + #if !__BSD_VISIBLE +-- +2.21.0 + |