Blame


1 dd038bc6 2021-09-21 thomas.ad noinst_LIBRARIES = libopenbsd-compat.a
2 dd038bc6 2021-09-21 thomas.ad
3 0ca5b679 2021-10-09 thomas include $(top_builddir)/Makefile.common
4 dd038bc6 2021-09-21 thomas.ad
5 dd038bc6 2021-09-21 thomas.ad libopenbsd_compat_a_SOURCES = \
6 dd038bc6 2021-09-21 thomas.ad asprintf.c \
7 dd038bc6 2021-09-21 thomas.ad base64.c \
8 dd038bc6 2021-09-21 thomas.ad closefrom.c \
9 dd038bc6 2021-09-21 thomas.ad fmt_scaled.c \
10 dd038bc6 2021-09-21 thomas.ad freezero.c \
11 dd038bc6 2021-09-21 thomas.ad getdtablecount.c \
12 dd038bc6 2021-09-21 thomas.ad getopt.c \
13 dd038bc6 2021-09-21 thomas.ad getprogname.c \
14 dd038bc6 2021-09-21 thomas.ad imsg-buffer.c \
15 dd038bc6 2021-09-21 thomas.ad imsg.c \
16 dd038bc6 2021-09-21 thomas.ad merge.c \
17 dd038bc6 2021-09-21 thomas.ad reallocarray.c \
18 dd038bc6 2021-09-21 thomas.ad recallocarray.c \
19 dd038bc6 2021-09-21 thomas.ad strndup.c \
20 dd038bc6 2021-09-21 thomas.ad strnlen.c \
21 dd038bc6 2021-09-21 thomas.ad strsep.c \
22 dd038bc6 2021-09-21 thomas.ad strtonum.c \
23 dd514345 2021-09-21 thomas.ad imsg.h \
24 dd514345 2021-09-21 thomas.ad queue.h \
25 dd514345 2021-09-21 thomas.ad tree.h
26 d24ddaa6 2022-02-26 thomas
27 d24ddaa6 2022-02-26 thomas # For MacOS, don't build the compat versions of strl{cat,cpy}, but do for all
28 d24ddaa6 2022-02-26 thomas # other systems.
29 d24ddaa6 2022-02-26 thomas if !HOST_DARWIN
30 d24ddaa6 2022-02-26 thomas libopenbsd_compat_a_SOURCES += strlcat.c strlcpy.c
31 d24ddaa6 2022-02-26 thomas endif
32 d24ddaa6 2022-02-26 thomas
33 d24ddaa6 2022-02-26 thomas if HOST_DARWIN
34 d24ddaa6 2022-02-26 thomas libopenbsd_compat_a_SOURCES += uuid.c bsd-poll.c bsd-poll.h
35 d24ddaa6 2022-02-26 thomas endif
36 d24ddaa6 2022-02-26 thomas
37 d24ddaa6 2022-02-26 thomas if HOST_LINUX
38 92a9e85d 2021-09-24 thomas libopenbsd_compat_a_SOURCES += uuid.c
39 92a9e85d 2021-09-24 thomas endif
40 dd038bc6 2021-09-21 thomas.ad
41 97799ccd 2022-02-06 thomas if HAVE_LINUX_LANDLOCK
42 97799ccd 2022-02-06 thomas libopenbsd_compat_a_SOURCES += landlock.c
43 97799ccd 2022-02-06 thomas endif
44 97799ccd 2022-02-06 thomas
45 dd038bc6 2021-09-21 thomas.ad EXTRA_DIST = \
46 dd038bc6 2021-09-21 thomas.ad $(top_srcdir)/include/got_compat.h \
47 dd038bc6 2021-09-21 thomas.ad imsg.h \
48 dd038bc6 2021-09-21 thomas.ad queue.h \
49 d24ddaa6 2022-02-26 thomas tree.h \
50 d24ddaa6 2022-02-26 thomas bsd-poll.h