summaryrefslogtreecommitdiff
path: root/misc/openoffice2/patches/patch-gc
blob: 45a7bb35c5787052815657d7a62c319b8a8b6098 (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/09/13 03:54:14 hira Exp $

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

--- soltools/mkdepend/parse.c.orig	2006-09-22 17:57:33.000000000 +0900
+++ soltools/mkdepend/parse.c	2009-09-12 20:56:36.000000000 +0900
@@ -45,7 +45,7 @@
 	register int	type;
 	boolean recfailOK;
 
-	while ((line = getline(filep))) {
+	while ((line = ooo_getline(filep))) {
 		switch(type = deftype(line, filep, file_red, file, TRUE)) {
 		case IF:
 		doif:
@@ -167,7 +167,7 @@
 	register char	*line;
 	register int	type;
 
-	while ((line = getline(filep))) {
+	while ((line = ooo_getline(filep))) {
 		switch(type = deftype(line, filep, file_red, file, FALSE)) {
 		case IF:
 		case IFFALSE: