aboutsummaryrefslogtreecommitdiff
path: root/compat/compat.h
AgeCommit message (Collapse)Author
2012-01-21Silence buildbot warnings about unused resultsAustin Clements
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);
2010-04-27Wrap the compat header in extern "C" { } when compiling C++ sourcesTomas Carnecky
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.
2010-04-14Add simplistic reimplementation of strcasestr to compat libraryDirk Hohndel
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 <hohndel@infradead.org> Tested-by: Tomas Carnecky <tom@dbservice.com> (on OpenSolaris snv_134)
2009-12-01compat: Change includes from config.h to compat.h.Carl Worth
We may switch to using an autoconf-like config.h, but we're not doing that just yet.