diff options
Diffstat (limited to 'cad/gattrib/patches/patch-aa')
-rw-r--r-- | cad/gattrib/patches/patch-aa | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cad/gattrib/patches/patch-aa b/cad/gattrib/patches/patch-aa new file mode 100644 index 00000000000..d7b5da3941b --- /dev/null +++ b/cad/gattrib/patches/patch-aa @@ -0,0 +1,24 @@ +$NetBSD: patch-aa,v 1.5 2005/04/29 22:14:46 rillig Exp $ + +Needed for ISO C90 compliance. + +--- src/gattrib.c.orig Sun Mar 6 00:54:08 2005 ++++ src/gattrib.c Tue Apr 12 02:41:21 2005 +@@ -205,7 +205,7 @@ void gattrib_main(void *closure, int arg + i = argv_index; + while(argv[i] != NULL) { + +- gchar *temp_filename; ++ gchar *temp_filename, *filename; + #ifdef __MINGW32__ + if (argv[i][1] == ':' && (argv[i][2] == G_DIR_SEPARATOR || + argv[i][2] == OTHER_PATH_SEPARATER_CHAR)) +@@ -219,7 +219,7 @@ void gattrib_main(void *closure, int arg + temp_filename = g_build_path (G_DIR_SEPARATOR_S, cwd, argv[i], NULL); + } + +- gchar *filename = f_normalize_filename(temp_filename); ++ filename = f_normalize_filename(temp_filename); + g_free(temp_filename); + + s_log_message("Loading file [%s]\n", filename); |