diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2009-11-03 18:48:42 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2009-11-03 18:50:55 +0200 |
commit | 72b69e0094db5ac1f9bf38bea429b45bf2e449e3 (patch) | |
tree | dfced5d6bdfe71c4574113a5cc5180651f873782 /m4macros | |
parent | 8dfac859a15ea90c3015c510247dd3113c14dc26 (diff) | |
download | gtk+-72b69e0094db5ac1f9bf38bea429b45bf2e449e3.tar.gz |
Don't run system("touch conf.gtktest") in the AM_PATH_GTK_2_0 macro
Just use the C library instead to create the file. Helps building
using Wine. Not that I think we want to endorse that way to build GTK+
for Windows, proper cross-compiling surely probably more sense, but
accepting this minimal patch doesn't hurt. From bug #590017.
Signed-off-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'm4macros')
-rw-r--r-- | m4macros/gtk-2.0.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4macros/gtk-2.0.m4 b/m4macros/gtk-2.0.m4 index 3deba01be7..19f13ae7db 100644 --- a/m4macros/gtk-2.0.m4 +++ b/m4macros/gtk-2.0.m4 @@ -85,7 +85,7 @@ main () int major, minor, micro; char *tmp_version; - system ("touch conf.gtktest"); + fclose (fopen ("conf.gtktest", "w"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); |