summaryrefslogtreecommitdiffstats
path: root/vcs/clearcase
diff options
context:
space:
mode:
Diffstat (limited to 'vcs/clearcase')
-rw-r--r--vcs/clearcase/CMakeLists.txt1
-rw-r--r--vcs/clearcase/clearcasemanipulator.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/vcs/clearcase/CMakeLists.txt b/vcs/clearcase/CMakeLists.txt
index 4dbed390..90d83940 100644
--- a/vcs/clearcase/CMakeLists.txt
+++ b/vcs/clearcase/CMakeLists.txt
@@ -13,6 +13,7 @@ add_subdirectory( integrator )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/lib/interfaces
${CMAKE_SOURCE_DIR}/lib/interfaces/extensions
${CMAKE_SOURCE_DIR}/lib/util
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];