diff lwar/main.c @ 212:bae1e3ecdce1

More preparation for gnulib integration
author lost
date Fri, 24 Apr 2009 06:43:02 +0000
parents bb2665c7005c
children
line wrap: on
line diff
--- a/lwar/main.c	Fri Apr 24 06:27:00 2009 +0000
+++ b/lwar/main.c	Fri Apr 24 06:43:02 2009 +0000
@@ -22,9 +22,7 @@
 
 */
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
+#include <config.h>
 
 #include <argp.h>
 #include <errno.h>
@@ -39,6 +37,7 @@
 // command line option handling
 const char *argp_program_version = "LWAR from " PACKAGE_STRING;
 const char *argp_program_bug_address = PACKAGE_BUGREPORT;
+char *program_name;
 
 static error_t parse_opts(int key, char *arg, struct argp_state *state)
 {
@@ -131,6 +130,7 @@
 // assembler on the first file
 int main(int argc, char **argv)
 {
+	program_name = argv[0];
 	argp_parse(&argp, argc, argv, 0, 0, NULL);
 	if (archive_file == NULL)
 	{