From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
To: linux-nfc@lists.01.org
Subject: [neard][PATCH 1/4] include: include endian.h to fix missing __BYTE_ORDER definition on Debian Stretch
Date: Sun, 07 Nov 2021 18:26:16 +0100 [thread overview]
Message-ID: <20211107172619.13560-1-krzysztof.kozlowski@canonical.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 778 bytes --]
Code should pull explicitly headers for necessary symbols instead of
relying on dependencies. Lack of endian.h caused build failures on
Debian Stretch:
In file included from tools/nfctool/ndef-decode.c:28:0:
include/near/types.h:43:5: error: "__BYTE_ORDER" is not defined [-Werror=undef]
#if __BYTE_ORDER == __LITTLE_ENDIAN
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
include/types.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/types.h b/include/types.h
index c4a8d6a31886..1dd8de530d58 100644
--- a/include/types.h
+++ b/include/types.h
@@ -23,6 +23,7 @@
#define __NEAR_TYPES_H
#include <byteswap.h>
+#include <endian.h>
#define near_get_unaligned(ptr) \
({ \
--
2.32.0
next reply other threads:[~2021-11-07 17:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-07 17:26 Krzysztof Kozlowski [this message]
2021-11-07 17:26 ` [neard][PATCH 2/4] ci: add Ubuntu Impish (21.10) Krzysztof Kozlowski
2021-11-07 17:26 ` [neard][PATCH 3/4] ci: add Debian Buster and Stretch Krzysztof Kozlowski
2021-11-07 17:26 ` [neard][PATCH 4/4] ci: add Debian Testing for i386 and cross compile Krzysztof Kozlowski
2021-11-11 10:46 ` [neard][PATCH 1/4] include: include endian.h to fix missing __BYTE_ORDER definition on Debian Stretch Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211107172619.13560-1-krzysztof.kozlowski@canonical.com \
--to=krzysztof.kozlowski@canonical.com \
--cc=linux-nfc@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).