ed: avoid name collision with libc's getline. - 9base - revived minimalist port of Plan 9 userland to Unix
(HTM) git clone git://git.suckless.org/9base
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit bdca47727a2618c3cbb85a43fadcf9298ebec424
(DIR) parent 1583c9239d968bbc571190d2cf563146a9704528
(HTM) Author: Christopher Brannon <chris@the-brannons.com>
Date: Wed, 7 Jun 2017 08:58:04 -0700
ed: avoid name collision with libc's getline.
Redefining getline leads to a fun bug when linking statically against musl.
Diffstat:
M ed/ed.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) diff --git a/ed/ed.c b/ed/ed.c
@@ -77,6 +77,7 @@ ulong nlall = 128;
int tfile = -1;
int vflag = 1;
+#define getline p9getline
void add(int);
int* address(void);
int append(int(*)(void), int*);