]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix uClibc build on 64bit platforms by including stdint.h
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 18 May 2019 10:42:17 +0000 (12:42 +0200)
committerJeremy Allison <jra@samba.org>
Sun, 19 May 2019 17:34:20 +0000 (17:34 +0000)
Fixes an error detected by buildroot autobuilders:
http://autobuild.buildroot.net/results/573/573e2268e205e10d1352fa81122d8f225fdb4575/build-end.log

/home/rclinux/rc-buildroot-test/scripts/instance-1/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 ../lib/ldb/tests/ldb_msg.c:17:0:
../third_party/cmocka/cmocka.h:126:28: note: previous declaration of 'uintptr_t' was here
       typedef unsigned int uintptr_t;

The define __WORDSIZE is missing when cmocka.h decides how to
define uintptr_t, this patch includes stdint.h when needed.

Patch sent upstream:
https://lists.samba.org/archive/samba-technical/2018-January/125306.html

[updated for samba-4.8.4, v2 sent upstream
 https://lists.samba.org/archive/samba-technical/2018-August/129732.html,
 updated for samba-4.9.1]

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
[Retrieved from:
https://git.buildroot.net/buildroot/tree/package/samba4/0003-Fix-uClibc-build-on-64bit-platforms-by-including-std.patch]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Ralph Böhme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/ldb/tests/ldb_kv_ops_test.c
lib/ldb/tests/ldb_tdb_test.c
lib/ldb/tests/test_ldb_qsort.c
lib/util/tests/test_ms_fnmatch.c
source3/lib/test_tldap.c

index 57a4711706c2fbb08dd292b1173cb8fc573c6aed..c16297e136b1ab2c188d528bff683ae989b365e4 100644 (file)
@@ -49,6 +49,7 @@
  */
 #include <stdarg.h>
 #include <stddef.h>
+#include <stdint.h>
 #include <setjmp.h>
 #include <cmocka.h>
 
index 8418dbfd671fb38398597a7b37057c407bce57c5..ef91ba54756abd0532b45edb27056fa7a0b7d4f9 100644 (file)
@@ -40,6 +40,7 @@
  */
 #include <stdarg.h>
 #include <stddef.h>
+#include <stdint.h>
 #include <setjmp.h>
 #include <cmocka.h>
 
index 06e80d943795d46d9eba37baf1ad7da1c9ec5aae..663cf0e7564db81062a12d90318f8469e4ae8adb 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <stdarg.h>
 #include <stddef.h>
+#include <stdint.h>
 #include <setjmp.h>
 #include <cmocka.h>
 
index 7fe8ed05e28e7a54986a1f4ab3e31c1e4e9701d3..d11c7bed4becf8a9fb5e0b0a1922f1a988b30332 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <stdarg.h>
 #include <stddef.h>
+#include <stdint.h>
 #include <setjmp.h>
 #include <cmocka.h>
 
index a6c2f2117cb5d0e04347f769d126b8629b8ad1c3..659c5a7371afd83c97762c7f4d178332a428ac3c 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <stdarg.h>
 #include <stddef.h>
+#include <stdint.h>
 #include <setjmp.h>
 #include <cmocka.h>