mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 04:36:17 +01:00
Don't run system("touch conf.glibtest)" in the AM_PATH_GLIB_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, but accepting this minimal patch doesn't hurt. From bug #590016. Signed-off-by: Tor Lillqvist <tml@iki.fi>
This commit is contained in:
parent
f6276add35
commit
0d6b1ab42a
@ -93,9 +93,8 @@ main ()
|
|||||||
{
|
{
|
||||||
int major, minor, micro;
|
int major, minor, micro;
|
||||||
char *tmp_version;
|
char *tmp_version;
|
||||||
int ignored;
|
|
||||||
|
|
||||||
ignored = system ("touch conf.glibtest");
|
fclose (fopen ("conf.glibtest", "w"));
|
||||||
|
|
||||||
/* HP/UX 9 (%@#!) writes to sscanf strings */
|
/* HP/UX 9 (%@#!) writes to sscanf strings */
|
||||||
tmp_version = g_strdup("$min_glib_version");
|
tmp_version = g_strdup("$min_glib_version");
|
||||||
|
Loading…
Reference in New Issue
Block a user