[evolution-patches] Patch to build camel on systems where "read" is a macro
- From: David Malcolm <dmalcolm redhat com>
- To: Evolution Patches <evolution-patches ximian com>
- Subject: [evolution-patches] Patch to build camel on systems where "read" is a macro
- Date: Tue, 08 Mar 2005 19:02:32 -0500
Apparently the POSIX standard allows "read" to be a macro. This causes
problems inside camel-stream.c
Attached is a trivial patch to e-d-s that fixes the build under such
circumstances.
--- evolution-data-server-1.2.0/camel/camel-stream.c.cope-with-a-macro-called-read 2005-03-08 17:30:52.756859243 -0500
+++ evolution-data-server-1.2.0/camel/camel-stream.c 2005-03-08 17:31:00.497751999 -0500
@@ -94,7 +94,7 @@
g_return_val_if_fail (CAMEL_IS_STREAM (stream), -1);
g_return_val_if_fail (n == 0 || buffer, -1);
- return CS_CLASS (stream)->read (stream, buffer, n);
+ return (CS_CLASS (stream)->read) (stream, buffer, n);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]