pkgsrc/sysutils/cdrdao/patches/patch-ar

15 lines
477 B
Text

$NetBSD: patch-ar,v 1.1 2009/08/11 15:44:14 taca Exp $
Avoid confliction with getline(3).
--- scsilib/libscg/scsitransp.c.orig 2004-06-18 05:20:27.000000000 +0900
+++ scsilib/libscg/scsitransp.c
@@ -323,7 +323,7 @@ scg_yes(msg)
js_printf("%s", msg);
flush();
- if (getline(okbuf, sizeof (okbuf)) == EOF)
+ if (get_line(okbuf, sizeof (okbuf)) == EOF)
exit(EX_BAD);
if (streql(okbuf, "y") || streql(okbuf, "yes") ||
streql(okbuf, "Y") || streql(okbuf, "YES"))