[hackers] [9base] ed: avoid name collision with libc's getline. || Christopher Brannon
commit bdca47727a2618c3cbb85a43fadcf9298ebec424
Author: Christopher Brannon <chris_AT_the-brannons.com>
AuthorDate: Wed Jun 7 08:58:04 2017 -0700
Commit: Anselm R Garbe <garbeam_AT_gmail.com>
CommitDate: Fri Jun 30 08:56:44 2017 +0000
ed: avoid name collision with libc's getline.
Redefining getline leads to a fun bug when linking statically against musl.
diff --git a/ed/ed.c b/ed/ed.c
index 85eb455..2627059 100644
--- a/ed/ed.c
+++ b/ed/ed.c
_AT_@ -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*);
Received on Fri Jun 30 2017 - 10:56:51 CEST
This archive was generated by hypermail 2.3.0
: Fri Jun 30 2017 - 11:00:25 CEST