<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/compat/compat.h, branch 0.22.2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.22.2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.22.2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2014-04-08T10:27:14Z</updated>
<entry>
<title>compat: add canonicalize_file_name</title>
<updated>2014-04-08T10:27:14Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2014-01-27T14:12:12Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=af5c3afa91cc29268c6754ea70f15cae30f22403'/>
<id>urn:sha1:af5c3afa91cc29268c6754ea70f15cae30f22403</id>
<content type='text'>
the POSIX 2008 behaviour of realpath is not available everywhere so we
provide a simple wrapper function.  We use (and provide) the gnu
extension canonicalize_file_name to make it cleaner to test for the
feature we need; otherwise we have to rely on realpath segfaulting if
the second argument is null.
</content>
</entry>
<entry>
<title>timegm: add portable implementation (Solaris support)</title>
<updated>2013-08-23T15:57:35Z</updated>
<author>
<name>Blake Jones</name>
<email>blakej@foo.net</email>
</author>
<published>2013-08-21T11:09:54Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=8c6b2e7e9d30bb3a9ef4fd8632cbf6d8d0673bb7'/>
<id>urn:sha1:8c6b2e7e9d30bb3a9ef4fd8632cbf6d8d0673bb7</id>
<content type='text'>
The timegm(3) function is a non-standard extension to libc which is
available in GNU libc and on some BSDs.  Although SunOS had this
function in its libc, Solaris (unfortunately) removed it.  This patch
implements a very simple version of timegm() which is good enough for
parse-time-string.c.

Signed-off-by: Vladimir Marek &lt;vlmarek@volny.cz&gt;
</content>
</entry>
<entry>
<title>strsep: check for availability (Solaris support)</title>
<updated>2013-08-23T15:55:39Z</updated>
<author>
<name>Blake Jones</name>
<email>blakej@foo.net</email>
</author>
<published>2013-08-16T14:38:16Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=43843745dcbf31e96f447410e335a8d2aa21b00d'/>
<id>urn:sha1:43843745dcbf31e96f447410e335a8d2aa21b00d</id>
<content type='text'>
Solaris does not ship a version of the strsep() function.  This change
adds a check to "configure" to see whether notmuch needs to provide its
own implementation, and if so, it uses the new version in
"compat/strsep.c" (which was copied from Mutt, and apparently before
that from glibc).

Signed-off-by: Vladimir Marek &lt;vlmarek@volny.cz&gt;
</content>
</entry>
<entry>
<title>asctime: check for standards compliance (Solaris support)</title>
<updated>2013-08-23T15:55:23Z</updated>
<author>
<name>Vladimir Marek</name>
<email>vlmarek@volny.cz</email>
</author>
<published>2013-08-16T14:38:15Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=49a0b96486242ca4fc4d26e5b01a34e9df7a9f9f'/>
<id>urn:sha1:49a0b96486242ca4fc4d26e5b01a34e9df7a9f9f</id>
<content type='text'>
Add checks to "configure" to see whether _POSIX_PTHREAD_SEMANTICS needs
to be defined to get the right number of arguments in the prototypes for
asctime_r().  Solaris' default implementation conforms to POSIX.1c
Draft 6, rather than the final POSIX.1c spec.  The standards-compliant
version can be used by defining _POSIX_PTHREAD_SEMANTICS.

This change also adds the file "compat/check_asctime.c", which
configure uses to perform its check, and modifies compat/compat.h to
define _POSIX_PTHREAD_SEMANTICS if configure detected it was needed.

Signed-off-by: Vladimir Marek &lt;vlmarek@volny.cz&gt;
</content>
</entry>
<entry>
<title>getpwuid: check for standards compliance (Solaris support)</title>
<updated>2013-08-23T15:53:17Z</updated>
<author>
<name>Blake Jones</name>
<email>blakej@foo.net</email>
</author>
<published>2013-08-16T14:38:14Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=31c7001c99e042c2722217410d8a913875d44149'/>
<id>urn:sha1:31c7001c99e042c2722217410d8a913875d44149</id>
<content type='text'>
Add checks to "configure" to see whether _POSIX_PTHREAD_SEMANTICS needs
to be defined to get the right number of arguments in the prototypes for
getpwuid_r().  Solaris' default implementation conforms to POSIX.1c
Draft 6, rather than the final POSIX.1c spec.  The standards-compliant
version can be used by defining _POSIX_PTHREAD_SEMANTICS.

This change also adds the file "compat/check_getpwuid.c", which
configure uses to perform its check, and modifies compat/compat.h to
define _POSIX_PTHREAD_SEMANTICS if configure detected it was needed.

Signed-off-by: Vladimir Marek &lt;vlmarek@volny.cz&gt;
</content>
</entry>
<entry>
<title>Silence buildbot warnings about unused results</title>
<updated>2012-01-21T12:49:50Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-01-19T22:29:19Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a9a9e374e2567caad8601d1781a3b0af8a3dde13'/>
<id>urn:sha1:a9a9e374e2567caad8601d1781a3b0af8a3dde13</id>
<content type='text'>
This ignores the results of the two writes in sigint handlers even
harder than before.

While my libc lacks the declarations that trigger these warnings, this
can be tested by adding the following to notmuch.h:

__attribute__((warn_unused_result))
ssize_t write(int fd, const void *buf, size_t count);
</content>
</entry>
<entry>
<title>Wrap the compat header in extern "C" { } when compiling C++ sources</title>
<updated>2010-04-27T17:39:54Z</updated>
<author>
<name>Tomas Carnecky</name>
<email>tom@dbservice.com</email>
</author>
<published>2010-04-27T17:27:17Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=aab54b4ce752b16725399d1543602ef3f7736c91'/>
<id>urn:sha1:aab54b4ce752b16725399d1543602ef3f7736c91</id>
<content type='text'>
This fixes a build error on OpenSolaris where the final liking of
notmuch fails because the linker can't find strcasestr() referenced
from thread.cc.
</content>
</entry>
<entry>
<title>Add simplistic reimplementation of strcasestr to compat library</title>
<updated>2010-04-14T18:34:12Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>hohndel@x200.gr8dns.org</email>
</author>
<published>2010-04-13T16:47:48Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d09154465aeae727e93a4abf54ff8f3bf0bdab76'/>
<id>urn:sha1:d09154465aeae727e93a4abf54ff8f3bf0bdab76</id>
<content type='text'>
While all systems that I have access to support strcasestr, it is
in fact not part of POSIX. So here's a fallback reimplementation
based on POSIX functions.

Signed-off-by: Dirk Hohndel &lt;hohndel@infradead.org&gt;

Tested-by: Tomas Carnecky &lt;tom@dbservice.com&gt; (on OpenSolaris snv_134)
</content>
</entry>
<entry>
<title>compat: Change includes from config.h to compat.h.</title>
<updated>2009-12-02T00:27:29Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2009-12-01T22:09:12Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c04a432ef201e090a8711b80ad7bb175b9719fa1'/>
<id>urn:sha1:c04a432ef201e090a8711b80ad7bb175b9719fa1</id>
<content type='text'>
We may switch to using an autoconf-like config.h, but we're not doing
that just yet.
</content>
</entry>
</feed>
