From: Tor Lillqvist Date: Thu, 15 Sep 2005 18:08:50 +0000 (+0000) Subject: If no ENETUNREACH (Win32), use EINVAL. X-Git-Tag: upstream/3.7.4~6896 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98b73ae55ae08e494a5208d1b95ec7ec2a206484;p=platform%2Fupstream%2Fevolution-data-server.git If no ENETUNREACH (Win32), use EINVAL. 2005-09-15 Tor Lillqvist * camel-imap-wrapper.c: If no ENETUNREACH (Win32), use EINVAL. --- diff --git a/camel/providers/imap/ChangeLog b/camel/providers/imap/ChangeLog index 3031041..72543ad 100644 --- a/camel/providers/imap/ChangeLog +++ b/camel/providers/imap/ChangeLog @@ -17,6 +17,8 @@ IMAP servers is not supported on Win32 (at least for now), so bypass that code. + * camel-imap-wrapper.c: If no ENETUNREACH (Win32), use EINVAL. + 2005-08-23 Shreyas Srinivasan ** See #314199 diff --git a/camel/providers/imap/camel-imap-wrapper.c b/camel/providers/imap/camel-imap-wrapper.c index 04fd2cf..e08a89f 100644 --- a/camel/providers/imap/camel-imap-wrapper.c +++ b/camel/providers/imap/camel-imap-wrapper.c @@ -139,7 +139,12 @@ write_to_stream (CamelDataWrapper *data_wrapper, CamelStream *stream) imap_wrapper->part_spec, FALSE, NULL); if (!datastream) { CAMEL_IMAP_WRAPPER_UNLOCK (imap_wrapper, lock); +#ifdef ENETUNREACH errno = ENETUNREACH; +#else +#warning FIXME: what errno to use if no ENETUNREACH + errno = EINVAL; +#endif return -1; }