Thanks to Jani Nikula and Tomi Ollila for their comments. Changes since last version: - Add feature test for timegm(); move portable implementation of timegm() into compat/, change libparse-time-string to pull in .o's from compat/. - Include <stdio.h> in compat/check_*.c, to get definition of NULL. - Explicitly define _POSIX_PTHREAD_SEMANTICS to 1 in compat.h. - Call strchr() rather than index() in notmuch-config.c. Blake