Re: [Tracker] stdin/stdout is keyword for compile, replace it
- From: Philip Van Hoof <spam pvanhoof be>
- To: Jerry Tan <Jerry Tan Sun COM>
- Cc: Tracker-List <tracker-list gnome org>
- Subject: Re: [Tracker] stdin/stdout is keyword for compile, replace it
- Date: Thu, 06 Nov 2008 11:38:07 +0100
Committed
ps. But next time, a normal attached file, and a ChangeLog record
please ;-)
On Tue, 2008-11-04 at 11:26 +0800, Jerry Tan wrote:
Patch here.
Index: src/libtracker-common/tracker-os-dependant-unix.c
===================================================================
--- src/libtracker-common/tracker-os-dependant-unix.c (revision 2435)
+++ src/libtracker-common/tracker-os-dependant-unix.c (working copy)
@@ -87,7 +87,7 @@
{
GError *error = NULL;
gboolean result;
- gint stdin, stdout, stderr;
+ gint tmpstdin, tmpstdout, tmpstderr;
g_return_val_if_fail (argv != NULL, FALSE);
g_return_val_if_fail (argv[0] != NULL, FALSE);
@@ -101,9 +101,9 @@
tracker_spawn_child_func,
GINT_TO_POINTER (timeout),
pid,
- stdin_channel ? &stdin : NULL,
- stdout_channel ? &stdout : NULL,
- stderr_channel ? &stderr : NULL,
+ stdin_channel ? &tmpstdin : NULL,
+ stdout_channel ? &tmpstdout : NULL,
+ stderr_channel ? &tmpstderr : NULL,
&error);
if (error) {
@@ -114,15 +114,15 @@
}
if (stdin_channel) {
- *stdin_channel = result ? g_io_channel_unix_new (stdin) : NULL;
+ *stdin_channel = result ? g_io_channel_unix_new (tmpstdin) : NULL;
}
if (stdout_channel) {
- *stdout_channel = result ? g_io_channel_unix_new (stdout) : NULL;
+ *stdout_channel = result ? g_io_channel_unix_new (tmpstdout) : NULL;
}
if (stderr_channel) {
- *stderr_channel = result ? g_io_channel_unix_new (stderr) : NULL;
+ *stderr_channel = result ? g_io_channel_unix_new (tmpstderr) : NULL;
}
return result;
_______________________________________________
tracker-list mailing list
tracker-list gnome org
http://mail.gnome.org/mailman/listinfo/tracker-list
--
Philip Van Hoof, freelance software developer
home: me at pvanhoof dot be
gnome: pvanhoof at gnome dot org
http://pvanhoof.be/blog
http://codeminded.be
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]