From af7c8f8a9bfc3396dc729f3fc54c38d19f2aa3fc Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 14 Sep 2017 21:13:28 -0700 Subject: attr: Backports to fix exported headers Packages which depends on attr headers fail due to uint32_t not being defined, this needed header to include sys/types.h Signed-off-by: Khem Raj Signed-off-by: Ross Burton --- .../attr/0001-Use-stdint-types-consistently.patch | 69 ++++++++++++++++++++++ meta/recipes-support/attr/attr_2.4.47.bb | 1 + 2 files changed, 70 insertions(+) create mode 100644 meta/recipes-support/attr/attr/0001-Use-stdint-types-consistently.patch (limited to 'meta/recipes-support') diff --git a/meta/recipes-support/attr/attr/0001-Use-stdint-types-consistently.patch b/meta/recipes-support/attr/attr/0001-Use-stdint-types-consistently.patch new file mode 100644 index 0000000000..dcd6507bcc --- /dev/null +++ b/meta/recipes-support/attr/attr/0001-Use-stdint-types-consistently.patch @@ -0,0 +1,69 @@ +From 37a27b6fd09ecb37097b85e5db74e4f77b80fe0a Mon Sep 17 00:00:00 2001 +From: Felix Janda +Date: Tue, 12 Jan 2016 22:20:33 +0100 +Subject: [PATCH] Use stdint types consistently + +--- +Upstream-Status: Backport +Signed-off-by: Khem Raj + + include/attributes.h | 6 ++++-- + man/man3/attr_list.3 | 8 ++++---- + 2 files changed, 8 insertions(+), 6 deletions(-) + +Index: attr-2.4.47/include/attributes.h +=================================================================== +--- attr-2.4.47.orig/include/attributes.h ++++ attr-2.4.47/include/attributes.h +@@ -22,6 +22,7 @@ + extern "C" { + #endif + ++#include + /* + * An almost-IRIX-compatible extended attributes API + * (the IRIX attribute "list" operation is missing, added ATTR_SECURE). +@@ -69,7 +70,7 @@ typedef struct attrlist { + * al_offset[i] entry points to. + */ + typedef struct attrlist_ent { /* data from attr_list() */ +- u_int32_t a_valuelen; /* number bytes in value of attr */ ++ uint32_t a_valuelen; /* number bytes in value of attr */ + char a_name[1]; /* attr name (NULL terminated) */ + } attrlist_ent_t; + +@@ -90,7 +91,7 @@ typedef struct attrlist_ent { /* data fr + * operation on a cursor is to bzero() it. + */ + typedef struct attrlist_cursor { +- u_int32_t opaque[4]; /* an opaque cookie */ ++ uint32_t opaque[4]; /* an opaque cookie */ + } attrlist_cursor_t; + + /* +Index: attr-2.4.47/man/man3/attr_list.3 +=================================================================== +--- attr-2.4.47.orig/man/man3/attr_list.3 ++++ attr-2.4.47/man/man3/attr_list.3 +@@ -72,9 +72,9 @@ The contents of an \f4attrlist_t\fP stru + .nf + .ft 4 + .ta 9n 22n +-__int32_t al_count; /\(** number of entries in attrlist \(**/ +-__int32_t al_more; /\(** T/F: more attrs (do syscall again) \(**/ +-__int32_t al_offset[1]; /\(** byte offsets of attrs [var-sized] \(**/ ++int32_t al_count; /\(** number of entries in attrlist \(**/ ++int32_t al_more; /\(** T/F: more attrs (do syscall again) \(**/ ++int32_t al_offset[1]; /\(** byte offsets of attrs [var-sized] \(**/ + .ft 1 + .fi + .RE +@@ -113,7 +113,7 @@ include the following members: + .nf + .ft 4 + .ta 9n 22n +-u_int32_t a_valuelen; /\(** number bytes in value of attr \(**/ ++uint32_t a_valuelen; /\(** number bytes in value of attr \(**/ + char a_name[]; /\(** attr name (NULL terminated) \(**/ + .ft 1 + .fi diff --git a/meta/recipes-support/attr/attr_2.4.47.bb b/meta/recipes-support/attr/attr_2.4.47.bb index 2dada7a1fc..fc88bef830 100644 --- a/meta/recipes-support/attr/attr_2.4.47.bb +++ b/meta/recipes-support/attr/attr_2.4.47.bb @@ -6,6 +6,7 @@ SRC_URI += "file://attr-Missing-configure.ac.patch \ file://dont-use-decl-macros.patch \ file://Remove-the-section-2-man-pages.patch \ file://Remove-the-attr.5-man-page-moved-to-man-pages.patch \ + file://0001-Use-stdint-types-consistently.patch \ " SRC_URI[md5sum] = "84f58dec00b60f2dc8fd1c9709291cc7" -- cgit 1.2.3-korg