From b2a9601cebb67db9e02ac7bbd927a21aa95f5ba3 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Fri, 25 Nov 2016 18:30:40 +0100 Subject: common: Fix PRI{x,d}off definitions for x86_64 platform Compiling for x86_64 generates a lot of warning because the PRIxoff_t and PRIdoff_t are not properly defined, which comes from the missing SIZEOF_LONG definition. Use the autotools to generate a config.h header, include this header from common.h and ask autoheader to generate the SIZEOF_LONG and SIZEOF_LOFF_T definitions. Use these new definitions to assign the proper descriptors to PRIxoff_t and PRIdoff_t. Signed-off-by: Boris Brezillon --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index c11a45e..a5547d5 100644 --- a/.gitignore +++ b/.gitignore @@ -124,6 +124,9 @@ tests/ubi-tests/ubi-stress-test.sh /missing /stamp-h? /compile +/include/config.h +/include/config.h.in +/include/stamp-h1 # # Top-level generic files -- cgit v1.2.3