diff --git a/ChangeLog b/ChangeLog index 5c45b0c4..e7dbd6a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-11-22 Darshit Shah + + * build-aux/build_info.pl: Include version.h in the final C file generated + by the script. + 2014-11-20 Darshit Shah * configure.ac: Change option to --enable-assert. Assertions are disabled by diff --git a/build-aux/build_info.pl b/build-aux/build_info.pl index 67aeab14..f346d3d2 100755 --- a/build-aux/build_info.pl +++ b/build-aux/build_info.pl @@ -137,3 +137,4 @@ __DATA__ #include "wget.h" #include +#include "version.h" diff --git a/src/ChangeLog b/src/ChangeLog index e912cf9e..3d29d3dc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2014-11-22 Darshit Shah + + * version.h: Add extern for compilation_string + * main: Remove declaration for compilation_String + 2014-11-22 Darshit Shah * version.h: New file. Add extern declarations for globally shared strings diff --git a/src/main.c b/src/main.c index 56f33129..6f5adf74 100644 --- a/src/main.c +++ b/src/main.c @@ -81,8 +81,6 @@ struct options opt; /* defined in version.c */ extern char *system_getrc; -/* defined in build_info.c */ -extern const char *compiled_features[]; /* Used for --version output in print_version */ #define MAX_CHARS_PER_LINE 72 #define TABULATION 4 diff --git a/src/version.h b/src/version.h index 487f73f9..32ab5312 100644 --- a/src/version.h +++ b/src/version.h @@ -31,3 +31,6 @@ as that of the covered work. */ extern const char *version_string; extern const char *compilation_string; extern const char *link_string; + +/* Extern declaration for string in build_info.c */ +extern const char *compiled_features[];