summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2023-03-24 15:59:17 +0100
committerSlávek Banko <slavek.banko@axis.cz>2023-03-24 15:59:17 +0100
commit871b5f0c9575c4ece13fe7316913836dc6a59aa4 (patch)
tree74b22eda4d2531d416f5543804757af2df1d30d5
parent7cbd7f2d42a3bceb31f28b932560e80eb124fbe0 (diff)
downloadbibletime-871b5f0c9575c4ece13fe7316913836dc6a59aa4.tar.gz
bibletime-871b5f0c9575c4ece13fe7316913836dc6a59aa4.zip
Fix FTBFS due to incomplete declaration of main function in CMake tests.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--ConfigureChecks.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index b42d290..20de3d0 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -41,7 +41,7 @@ endif()
check_cxx_source_compiles("
#include <signal.h>
#include <${SWORD_INCLUDE_DIRS}/sysdata.h>
- main() {}
+ int main() {}
"
SWORD_WITHOUT_SANE_USERSPACE_TYPES
)
@@ -50,7 +50,7 @@ if( NOT SWORD_WITHOUT_SANE_USERSPACE_TYPES )
#define __SANE_USERSPACE_TYPES__
#include <signal.h>
#include <${SWORD_INCLUDE_DIRS}/sysdata.h>
- main() {}
+ int main() {}
"
SWORD_WITH_SANE_USERSPACE_TYPES
)