input: Fix compiling against libedit with -fno-common
PATCH 1/1 input: Fix compiling against libedit with -fno-common
From: Jeroen Roovers <[email protected]>
With -fno-common, which will be enabled by default in GCC 10, we see this error:
ld: input.o:(.bss+0x0): multiple definition of `el'; histedit.o:(.bss+0x8): first defined here
To fix this, simply remove the definition as it is not needed.
Signed-off-by Jeroen Roovers <[email protected]>
Signed-off-by Mike Gilbert <[email protected]>
--- src/input.c | 4 ---- 1 file changed, 4 deletions(-)
src/input.c +0 -4
@@ -67,10 +67,6 @@ MKINIT char basebuf[IBUFSIZ]; /* buffer for top level input file */struct parsefile *parsefile = &basepf;/* current input file */ int whichprompt;/* 1 == PS1, 2 == PS2 */ -#ifndef SMALL -EditLine *el;/* cookie for editline package */ -#endif - STATIC void pushfile(void);static int preadfd (void );static void setinputfd (int fd,int push);
Signature · 1 line
2.25.1
Quoted 8 lines · Mike Gilbert
From: Jeroen Roovers <[email protected]>
With -fno-common, which will be enabled by default in GCC 10, we see this error:
ld: input.o:(.bss+0x0): multiple definition of `el'; histedit.o:(.bss+0x8): first defined here
Quoted 7 lines
To fix this, simply remove the definition as it is not needed.
Signed-off-by Jeroen Roovers <[email protected]>Signed-off-by Mike Gilbert <[email protected]>---
src/input.c| 4 ----1 file changed, 4 deletions(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt