From 88cec4d1358b874a96035e8b4a38a0b57c84c496 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Thu, 21 Feb 2002 03:54:34 +0000 Subject: ed Feb 20 22:35:42 2002 Owen Taylor Fixes from Miroslaw Dobrzanski-Neumann (#71963) * glib/giounix.c (g_io_channel_new_file): Fix trailing comma in enum. * configure.in: Check for unsetenv. * test/uri-test.c: Fall back to trying putenv(VARNAME) if unsetenv isn't present. --- tests/uri-test.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/uri-test.c b/tests/uri-test.c index f16d26552..000917656 100644 --- a/tests/uri-test.c +++ b/tests/uri-test.c @@ -316,7 +316,14 @@ main (int argc, char *argv[]) { #ifdef G_OS_UNIX +# ifdef HAVE_UNSETENV unsetenv ("G_BROKEN_FILENAMES"); +# else + /* putenv with no = isn't standard, but works to unset the variable + * on some systems + */ + putenv ("G_BROKEN_FILENAMES"); +# endif #endif run_to_uri_tests (); -- cgit v1.2.3