From a0607be7f4ca2d54332cd9e557b21f6ed7a763d5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 7 Aug 2006 19:48:38 +0000 Subject: [PATCH] * Workaround for a bug (?) in GCC 2.95. --- src/nix-env/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc index 02defe44a..7ec2667e7 100644 --- a/src/nix-env/main.cc +++ b/src/nix-env/main.cc @@ -804,7 +804,7 @@ static void opQuery(Globals & globals, /* Print the desired columns, or XML output. */ Table table; ostringstream dummy; - XMLWriter xml(xmlOutput ? cout : dummy); + XMLWriter xml(*(xmlOutput ? &cout : &dummy)); XMLOpenElement xmlRoot(xml, "items"); for (vector::iterator i = elems2.begin();