[hackers] [PATCH] [9base]: ed: avoid name collision with libc's getline.

From: Christopher Brannon <chris_AT_the-brannons.com>
Date: Wed, 7 Jun 2017 08:58:04 -0700

Redefining getline leads to a fun bug when linking statically against musl.
---
 ed/ed.c | 1 +
 1 file changed, 1 insertion(+)
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*);
-- 
2.13.0
Received on Wed Jun 07 2017 - 17:58:04 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 07 2017 - 18:00:19 CEST