bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] [PATCH 3/4] genfile: fix build failure


From: KO Myung-Hun
Subject: [Bug-tar] [PATCH 3/4] genfile: fix build failure
Date: Tue, 25 Nov 2014 18:06:07 +0900

* tests/genfile.c: Declare program_name as extern.

-----
  CCLD   genfile.exe
  ld.exe: symbol `_program_name' defined more than once in 
../gnu/libgnu.a(progname.o)
---
 tests/genfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/genfile.c b/tests/genfile.c
index d41336b..a85b12d 100644
--- a/tests/genfile.c
+++ b/tests/genfile.c
@@ -55,7 +55,7 @@ enum pattern
 };
 
 /* The name this program was run with. */
-const char *program_name;
+extern const char *program_name;
 
 /* Name of file to generate */
 static char *file_name;
-- 
1.8.5.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]