From: Fabrice Fontaine Date: Mon, 16 Dec 2019 09:28:53 +0000 (+0100) Subject: source4/utils/oLschema2ldif: include stdint.h before cmocka.h X-Git-Tag: ldb-2.1.0~220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bfb384018deb2ee5c27dbea9fa2cdd98901fdcc;p=thirdparty%2Fsamba.git source4/utils/oLschema2ldif: include stdint.h before cmocka.h This fix the following build failure: In file included from /home/fabrice/buildroot/output/host/opt/ext-toolchain/lib/gcc/mips64el-buildroot-linux-uclibc/5.5.0/include/stdint.h:9:0, from /home/fabrice/buildroot/output/host/mips64el-buildroot-linux-uclibc/sysroot/usr/include/inttypes.h:27, from ../../lib/replace/../replace/replace.h:64, from ../../source4/include/includes.h:23, from ../../source4/utils/oLschema2ldif/test.c:25: /home/fabrice/buildroot/output/host/mips64el-buildroot-linux-uclibc/sysroot/usr/include/stdint.h:122:27: error: conflicting types for ‘uintptr_t’ typedef unsigned long int uintptr_t; ^ In file included from ../../source4/utils/oLschema2ldif/test.c:23:0: /home/fabrice/buildroot/output/host/mips64el-buildroot-linux-uclibc/sysroot/usr/include/cmocka.h:132:28: note: previous declaration of ‘uintptr_t’ was here typedef unsigned int uintptr_t; Fixes: - http://autobuild.buildroot.org/results/9507739b3d5d51024ee9c60b74c2f85d5004e7e2 BUG: https://bugzilla.samba.org/show_bug.cgi?id=14218 Signed-off-by: Fabrice Fontaine Reviewed-by: Uri Simchoni Reviewed-by: Andreas Schneider Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Wed Dec 18 16:57:52 UTC 2019 on sn-devel-184 --- diff --git a/source4/utils/oLschema2ldif/test.c b/source4/utils/oLschema2ldif/test.c index 6748ce08c33..3834ea462fd 100644 --- a/source4/utils/oLschema2ldif/test.c +++ b/source4/utils/oLschema2ldif/test.c @@ -19,6 +19,7 @@ #include #include +#include #include #include