2019-07-22 18:12:13 +02:00
|
|
|
From e3e9755989b158b2497d2c449db445cf7f93de56 Mon Sep 17 00:00:00 2001
|
2018-01-28 13:53:33 +01:00
|
|
|
From: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|
|
|
Date: Sun, 28 Jan 2018 11:57:11 +0100
|
2018-08-09 10:06:19 +02:00
|
|
|
Subject: [PATCH] Fix uClibc build on 64bit platforms by including stdint.h
|
2018-01-28 13:53:33 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2018-08-18 10:08:01 +02:00
|
|
|
[updated for samba-4.8.4, v2 sent upstream
|
2018-10-01 15:55:49 +02:00
|
|
|
https://lists.samba.org/archive/samba-technical/2018-August/129732.html,
|
2019-07-22 18:12:13 +02:00
|
|
|
updated for samba-4.9.1 & 4.10.6]
|
2018-08-18 10:08:01 +02:00
|
|
|
|
2018-01-28 13:53:33 +01:00
|
|
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|
|
|
---
|
2019-07-22 18:12:13 +02:00
|
|
|
lib/ldb/tests/ldb_kv_ops_test.c | 1 +
|
|
|
|
lib/ldb/tests/ldb_tdb_test.c | 1 +
|
|
|
|
lib/ldb/tests/test_ldb_dn.c | 1 +
|
|
|
|
lib/ldb/tests/test_ldb_qsort.c | 1 +
|
|
|
|
lib/util/tests/test_ms_fnmatch.c | 1 +
|
|
|
|
source3/lib/test_tldap.c | 1 +
|
|
|
|
6 files changed, 6 insertions(+)
|
2018-01-28 13:53:33 +01:00
|
|
|
|
2018-10-01 15:55:49 +02:00
|
|
|
diff --git a/lib/ldb/tests/ldb_kv_ops_test.c b/lib/ldb/tests/ldb_kv_ops_test.c
|
2019-07-22 18:12:13 +02:00
|
|
|
index d6a4dc058e5..8b230200cba 100644
|
2018-10-01 15:55:49 +02:00
|
|
|
--- a/lib/ldb/tests/ldb_kv_ops_test.c
|
|
|
|
+++ b/lib/ldb/tests/ldb_kv_ops_test.c
|
|
|
|
@@ -46,6 +46,7 @@
|
|
|
|
*/
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
+#include <stdint.h>
|
|
|
|
#include <setjmp.h>
|
|
|
|
#include <cmocka.h>
|
|
|
|
|
2019-07-22 18:12:13 +02:00
|
|
|
diff --git a/lib/ldb/tests/ldb_tdb_test.c b/lib/ldb/tests/ldb_tdb_test.c
|
|
|
|
index 8418dbfd671..ef91ba54756 100644
|
|
|
|
--- a/lib/ldb/tests/ldb_tdb_test.c
|
|
|
|
+++ b/lib/ldb/tests/ldb_tdb_test.c
|
|
|
|
@@ -40,6 +40,7 @@
|
2018-01-28 13:53:33 +01:00
|
|
|
*/
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
+#include <stdint.h>
|
|
|
|
#include <setjmp.h>
|
|
|
|
#include <cmocka.h>
|
|
|
|
|
2019-07-22 18:12:13 +02:00
|
|
|
diff --git a/lib/ldb/tests/test_ldb_dn.c b/lib/ldb/tests/test_ldb_dn.c
|
|
|
|
index 4965dcef575..37eeedc1d70 100644
|
|
|
|
--- a/lib/ldb/tests/test_ldb_dn.c
|
|
|
|
+++ b/lib/ldb/tests/test_ldb_dn.c
|
|
|
|
@@ -19,6 +19,7 @@
|
2018-01-28 13:53:33 +01:00
|
|
|
|
2018-10-01 15:55:49 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
+#include <stdint.h>
|
|
|
|
#include <setjmp.h>
|
|
|
|
#include <cmocka.h>
|
|
|
|
|
|
|
|
diff --git a/lib/ldb/tests/test_ldb_qsort.c b/lib/ldb/tests/test_ldb_qsort.c
|
|
|
|
index 06e80d94379..663cf0e7564 100644
|
|
|
|
--- a/lib/ldb/tests/test_ldb_qsort.c
|
|
|
|
+++ b/lib/ldb/tests/test_ldb_qsort.c
|
|
|
|
@@ -19,6 +19,7 @@
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
+#include <stdint.h>
|
|
|
|
#include <setjmp.h>
|
|
|
|
#include <cmocka.h>
|
|
|
|
|
|
|
|
diff --git a/lib/util/tests/test_ms_fnmatch.c b/lib/util/tests/test_ms_fnmatch.c
|
|
|
|
index 7fe8ed05e28..d11c7bed4be 100644
|
|
|
|
--- a/lib/util/tests/test_ms_fnmatch.c
|
|
|
|
+++ b/lib/util/tests/test_ms_fnmatch.c
|
|
|
|
@@ -19,6 +19,7 @@
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
+#include <stdint.h>
|
|
|
|
#include <setjmp.h>
|
|
|
|
#include <cmocka.h>
|
|
|
|
|
|
|
|
diff --git a/source3/lib/test_tldap.c b/source3/lib/test_tldap.c
|
|
|
|
index a6c2f2117cb..659c5a7371a 100644
|
|
|
|
--- a/source3/lib/test_tldap.c
|
|
|
|
+++ b/source3/lib/test_tldap.c
|
|
|
|
@@ -20,6 +20,7 @@
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
+#include <stdint.h>
|
|
|
|
#include <setjmp.h>
|
|
|
|
#include <cmocka.h>
|
|
|
|
|
2018-01-28 13:53:33 +01:00
|
|
|
--
|
2019-07-22 18:12:13 +02:00
|
|
|
2.20.1
|
2018-01-28 13:53:33 +01:00
|
|
|
|