mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
8c6b2e7e9d
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 <vlmarek@volny.cz>
24 lines
445 B
Makefile
24 lines
445 B
Makefile
# -*- makefile -*-
|
|
|
|
dir := compat
|
|
extra_cflags += -I$(srcdir)/$(dir)
|
|
|
|
notmuch_compat_srcs :=
|
|
|
|
ifneq ($(HAVE_GETLINE),1)
|
|
notmuch_compat_srcs += $(dir)/getline.c $(dir)/getdelim.c
|
|
endif
|
|
|
|
ifneq ($(HAVE_STRCASESTR),1)
|
|
notmuch_compat_srcs += $(dir)/strcasestr.c
|
|
endif
|
|
|
|
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)
|