blob: cdf897ac083902f1c459332cd05e0a8fdc2d1913 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-ai,v 1.7 2009/09/03 11:58:45 wiz Exp $
--- vcs/clearcase/clearcasemanipulator.cpp.orig 2008-03-30 00:56:29.000000000 +0000
+++ vcs/clearcase/clearcasemanipulator.cpp
@@ -19,8 +19,11 @@
#include <stdlib.h>
#include <libgen.h>
#include <errno.h>
+#ifdef __NetBSD__
+#include <sys/param.h>
+#endif
-#if defined(Q_OS_MACX) || defined(MACOSX) || defined(Q_OS_SOLARIS) || defined(Q_OS_FREEBSD)
+#if defined(Q_OS_MACX) || defined(MACOSX) || defined(Q_OS_SOLARIS) || defined(Q_OS_FREEBSD) || (defined(__NetBSD__) && (__NetBSD_Version__ < 599001500)) || defined(__DragonFly__)
//this function is taken from GNU libc
//it does not exist on macos
int getline(char **lineptr, size_t *n, FILE *stream)
|