From 8c6b2e7e9d30bb3a9ef4fd8632cbf6d8d0673bb7 Mon Sep 17 00:00:00 2001 From: Blake Jones Date: Wed, 21 Aug 2013 13:09:54 +0200 Subject: timegm: add portable implementation (Solaris support) 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 --- compat/Makefile.local | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compat/Makefile.local') diff --git a/compat/Makefile.local b/compat/Makefile.local index 2c4f65fc..b0d5417f 100644 --- a/compat/Makefile.local +++ b/compat/Makefile.local @@ -17,4 +17,8 @@ ifneq ($(HAVE_STRSEP),1) notmuch_compat_srcs += $(dir)/strsep.c endif +ifneq ($(HAVE_TIMEGM),1) +notmuch_compat_srcs += $(dir)/timegm.c +endif + SRCS := $(SRCS) $(notmuch_compat_srcs) -- cgit v1.2.3