From 214961ddabaa3c3d70a52b3e0ea9fdf69918e0d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 29 Jun 2019 15:31:49 +0200 Subject: [PATCH] cmake: Add missing checks include files. This resolves FTBFS on big-endian architectures. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 918bb2093769284e885e55691e1986db458db0d5) --- ConfigureChecks.cmake | 3 +++ config.h.cmake | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index dbc71b8..427373c 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -28,6 +28,9 @@ endif( WITH_GCC_VISIBILITY ) ##### check for headers check_include_file( "slapi-plugin.h" HAVE_SLAPI_PLUGIN_H ) +check_include_file( "sys/bitypes.h" HAVE_SYS_BITYPES_H ) +check_include_file( "sys/types.h" HAVE_SYS_TYPES_H ) +check_include_file( "stdint.h" HAVE_STDINT_H ) ##### check for ldap diff --git a/config.h.cmake b/config.h.cmake index 1684891..87b949a 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -10,6 +10,15 @@ /* Defined to 1 if you have the header */ #cmakedefine HAVE_SLAPI_PLUGIN_H @HAVE_SLAPI_PLUGIN_H@ +/* Debian to 1 if you have the header */ +#cmakedefine HAVE_SYS_BITYPES_H 1 + +/* Debian to 1 if you have the header */ +#cmakedefine HAVE_SYS_TYPES_H 1 + +/* Debian to 1 if you have the header */ +#cmakedefine HAVE_STDINT_H 1 + /* Path for the config system */ #cmakedefine KDE_CONFDIR "@KDE_CONFDIR@"