diff options
author | rillig <rillig@pkgsrc.org> | 2005-04-29 22:14:46 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-04-29 22:14:46 +0000 |
commit | 373ac1d9af18189d48ed1f01e812512f1b636cc5 (patch) | |
tree | a5bec9055574ca3697a667b631f1de6b9556e0bc /cad/gattrib/patches/patch-aa | |
parent | 2f731f888a86c935f72457870f60990dc2d74f5c (diff) | |
download | pkgsrc-373ac1d9af18189d48ed1f01e812512f1b636cc5.tar.gz |
Added compatibility patch for ISO C90. Approved by wiz.
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); |