[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: |
Fri, 29 May 2015 14:32:00 +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.9.5