pkgsrc-ng/sysutils/sformat/patches/patch-libscg_scsitransp_c
2013-09-26 17:14:40 +02:00

16 lines
498 B
Plaintext

$NetBSD: patch-libscg_scsitransp_c,v 1.1 2012/06/16 08:55:55 dholland Exp $
Fix symbol name conflict with POSIX getline().
--- libscg/scsitransp.c Sat Jun 16 04:48:53 2012 -0400
+++ libscg/scsitransp.c Sat Jun 16 04:50:37 2012 -0400
@@ -302,7 +302,7 @@
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"))