openbsd-ports/sysutils/lookat/patches/patch-getline_c
bcallah 55566b6bef Import sysutils/lookat
ok juanfra@

lookat is a program to view Un*x text files and manual pages. It is
inspired by the DOS program list.com, designed to be more user-friendly
than the standard Un*x pagers.
2014-10-20 02:41:04 +00:00

22 lines
452 B
Plaintext

$OpenBSD: patch-getline_c,v 1.1.1.1 2014/10/20 02:41:04 bcallah Exp $
Committed upstream.
--- getline.c.orig Mon Oct 13 21:34:51 2014
+++ getline.c Mon Oct 13 21:36:54 2014
@@ -166,6 +166,8 @@ getstr (lineptr, n, stream, terminator, offset)
return ret;
}
+#ifndef __OpenBSD__
+
int
getline (lineptr, n, stream)
char **lineptr;
@@ -193,4 +195,5 @@ getdelim (lineptr, n, delimiter, stream)
}
#endif
+#endif /* ifndef __OpenBSD__ */