summaryrefslogtreecommitdiffstats
path: root/vcs/clearcase/clearcasemanipulator.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-02-17 19:40:16 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-02-17 19:40:33 +0100
commitfb3f4e690672c342d0bf050ce15a0d80365d3c71 (patch)
treec09f154ba897bacb97a498aa0aafe885eba8b2da /vcs/clearcase/clearcasemanipulator.cpp
parent86b1fce227074b460bd01468bca7087f3fc75c49 (diff)
downloadtdevelop-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 'vcs/clearcase/clearcasemanipulator.cpp')
-rw-r--r--vcs/clearcase/clearcasemanipulator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcs/clearcase/clearcasemanipulator.cpp b/vcs/clearcase/clearcasemanipulator.cpp
index 5c9563f9..65f05c4e 100644
--- a/vcs/clearcase/clearcasemanipulator.cpp
+++ b/vcs/clearcase/clearcasemanipulator.cpp
@@ -9,6 +9,7 @@
// Copyright: See COPYING file that comes with this distribution
//
//
+#include "config.h"
#include "clearcasemanipulator.h"
#include <kprocess.h>
@@ -23,9 +24,8 @@
#include <sys/param.h>
#endif
-#if defined(Q_OS_MACX) || defined(MACOSX) || defined(Q_OS_SOLARIS) || defined(Q_OS_FREEBSD) || (defined(__NetBSD__) && (__NetBSD_Version__ < 599001500)) || defined(__DragonFly__)
+#if !defined( HAVE_GETLINE )
//this function is taken from GNU libc
-//it does not exist on macos
int getline(char **lineptr, size_t *n, FILE *stream)
{
static char line[256];