Files
2013-09-26 17:14:40 +02:00

26 lines
799 B
Plaintext

$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: