Re: [hackers] [PATCH] [9base]: ed: avoid name collision with libc's getline.
On 7 June 2017 at 17:58, Christopher Brannon <chris_AT_the-brannons.com> wrote:
> 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
Thanks, applied.
Received on Fri Jun 30 2017 - 10:57:36 CEST
This archive was generated by hypermail 2.3.0
: Fri Jun 30 2017 - 11:00:29 CEST