notmuch/compat
Blake Jones 31c7001c99 getpwuid: check for standards compliance (Solaris support)
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 <vlmarek@volny.cz>
2013-08-23 17:53:17 +02:00
..
check_getpwuid.c getpwuid: check for standards compliance (Solaris support) 2013-08-23 17:53:17 +02:00
compat.h getpwuid: check for standards compliance (Solaris support) 2013-08-23 17:53:17 +02:00
function-attributes.h Provide a NORETURN_ATTRIBUTE macro similar to PRINTF_ATTRIBUTE 2012-09-27 12:50:22 -03:00
getdelim.c getdelim: Silence a (bogus) compiler warning. 2009-12-01 16:46:21 -08:00
getline.c compat: Change includes from config.h to compat.h. 2009-12-01 16:27:29 -08:00
have_getline.c Move "config" test programs to "compat". 2010-04-06 14:36:31 -07:00
have_strcasestr.c Add simplistic reimplementation of strcasestr to compat library 2010-04-14 11:34:12 -07:00
Makefile Makefiles: Use .DEFAULT to support arbitrary targets from sub directories. 2010-01-06 10:32:06 -08:00
Makefile.local Fix dependency generation for compat, test, and util 2012-01-19 09:19:12 -04:00
README Extend compat/README 2012-09-27 12:51:01 -03:00
strcasestr.c Add simplistic reimplementation of strcasestr to compat library 2010-04-14 11:34:12 -07:00

notmuch/compat

This directory consists of three things:

1. Small programs used by the notmuch configure script to test for the
   availability of certain system features, (library functions, etc.).

   For example: have_getline.c

2. Compatibility implementations of those system features for systems
   that don't provide their own versions.

   For example: getline.c

   The compilation of these files is made conditional on the output of
   the test programs from [1].

3. Macro definitions abstracting compiler differences (e.g. function
   attributes).

   For example: function-attributes.h