summaryrefslogtreecommitdiff
path: root/misc/openoffice3/patches/patch-gc
blob: a9ca7b4a63a1c025f063c541ac85a6842eaec233 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-gc,v 1.1 2009/07/16 10:47:11 wiz Exp $

Fix build with getline() in libc.
From http://bugs.gentoo.org/show_bug.cgi?id=270263

--- soltools/mkdepend/parse.c.orig	2008-04-10 18:06:39.000000000 +0000
+++ soltools/mkdepend/parse.c
@@ -45,7 +45,7 @@ int find_includes(filep, file, file_red,
 	register int	type;
 	boolean recfailOK;
 
-	while ((line = getline(filep))) {
+	while ((line = ooo_getline(filep))) {
 		switch(type = deftype(line, filep, file_red, file, TRUE, symbols)) {
 		case IF:
 		doif:
@@ -168,7 +168,7 @@ int gobble(filep, file, file_red, symbol
 	register char	*line;
 	register int	type;
 
-	while ((line = getline(filep))) {
+	while ((line = ooo_getline(filep))) {
 		switch(type = deftype(line, filep, file_red, file, FALSE, symbols)) {
 		case IF:
 		case IFFALSE: