meta-virtualization/recipes-extended/diod/files/0001-diod-ops.c-add-header-file-for-makedev.patch
Bruce Ashfield 2119189361 treewide: bulk update patches with status field
While the insane.bbclass upstream-status check hasn't been made
default, users of meta-virtualization may have it enabled in their
distros .. so the effect is the same. We must have this tracking
tag in out patches.

This is a bulk update to add the tag and silence the QA message.

As packages get updated, the normal/routine process of checking
the patches will continue, and the status fields may (or may not)
get more useful.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-01-27 10:32:06 -05:00

38 lines
887 B
Diff

From f75836731d6051d85e6317eb4c12465bafb4973e Mon Sep 17 00:00:00 2001
From: "Hongzhi.Song" <hongzhi.song@windriver.com>
Date: Fri, 31 Aug 2018 05:47:02 -0400
Subject: [PATCH] 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.
Upstream-Status: [Submitted]
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 c6c8291..469a502 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.8.1