diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-02-17 19:40:16 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-02-17 19:40:33 +0100 |
commit | fb3f4e690672c342d0bf050ce15a0d80365d3c71 (patch) | |
tree | c09f154ba897bacb97a498aa0aafe885eba8b2da /ConfigureChecks.cmake | |
parent | 86b1fce227074b460bd01468bca7087f3fc75c49 (diff) | |
download | tdevelop-fb3f4e690672c342d0bf050ce15a0d80365d3c71.tar.gz tdevelop-fb3f4e690672c342d0bf050ce15a0d80365d3c71.zip |
Add CMake check if the getline function is defined
instead of listing the systems and versions that need to be defined.
This resolves FTBFS on FreeBSD 12.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 0542509fc175c7b5a76cd31901834a2530ae4718)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index d46b7e33..83bcbfc6 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -31,6 +31,7 @@ endif( ) check_include_file( "sys/stropts.h" HAVE_SYS_STROPTS_H ) check_function_exists( "mkfifo" HAVE_MKFIFO ) +check_symbol_exists( "getline" "stdio.h" HAVE_GETLINE ) ##### check for berkeley db #################### |