mirror of
https://git.yoctoproject.org/poky
synced 2026-04-05 08:02:25 +02:00
bsd-headers: Package cdefs.h
Its used in several packages (From OE-Core rev: 8fea65047519a4d84183571e09d3f3f559d9e164) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -7,6 +7,7 @@ SECTION = "devel"
|
||||
|
||||
SRC_URI = "file://sys-queue.h \
|
||||
file://sys-tree.h \
|
||||
file://sys-cdefs.h \
|
||||
"
|
||||
do_configure[noexec] = "1"
|
||||
do_compile[noexec] = "1"
|
||||
@@ -18,6 +19,7 @@ S = "${WORKDIR}"
|
||||
do_install() {
|
||||
install -Dm 0644 ${S}/sys-queue.h ${D}${includedir}/sys/queue.h
|
||||
install -Dm 0644 ${S}/sys-tree.h ${D}${includedir}/sys/tree.h
|
||||
install -Dm 0644 ${S}/sys-cdefs.h ${D}${includedir}/sys/cdefs.h
|
||||
}
|
||||
#
|
||||
# We will skip parsing for non-musl systems
|
||||
|
||||
26
meta/recipes-core/bsd-headers/bsd-headers/sys-cdefs.h
Normal file
26
meta/recipes-core/bsd-headers/bsd-headers/sys-cdefs.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#warning usage of non-standard #include <sys/cdefs.h> is deprecated
|
||||
|
||||
#undef __P
|
||||
#undef __PMT
|
||||
|
||||
#define __P(args) args
|
||||
#define __PMT(args) args
|
||||
|
||||
#define __CONCAT(x,y) x ## y
|
||||
#define __STRING(x) #x
|
||||
|
||||
#ifdef __cplusplus
|
||||
# define __BEGIN_DECLS extern "C" {
|
||||
# define __END_DECLS }
|
||||
#else
|
||||
# define __BEGIN_DECLS
|
||||
# define __END_DECLS
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && !defined(__cplusplus)
|
||||
# define __THROW __attribute__ ((__nothrow__))
|
||||
# define __NTH(fct) __attribute__ ((__nothrow__)) fct
|
||||
#else
|
||||
# define __THROW
|
||||
# define __NTH(fct) fct
|
||||
#endif
|
||||
Reference in New Issue
Block a user