aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-11-07 18:26:16 +0100
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-11-11 11:45:59 +0100
commit034342e60a04cea61fe91784bd43deb2f4d8796c (patch)
tree18b043be02a2c54d5d97091cabc3d3e998bfe80d
parent343ab2c8aa9994d28265c3d5e8e0b4d988815262 (diff)
downloadneard-034342e60a04cea61fe91784bd43deb2f4d8796c.tar.gz
include: include endian.h to fix missing __BYTE_ORDER definition on Debian Stretch
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>
-rw-r--r--include/types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h
index c4a8d6a..1dd8de5 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) \
({ \