Blob
- Date:
- Message:
- portable: remove sys/tree.h compat inclusion libbsd as a library was created some years back to pull together BSD-specific functionality to be used on non-BSD systems. When it was in its infancy, and not being widely adopted across non-BSD systems, there was often a need to carry around compat versions of sys/{queue,tree}.h This is no longer the case -- and the compat code for this has never worked on systems which lacked a compatible sys/tree.h header anyway, so remove this, and let the user know that libbsd is needed. A few people have mentioned this to me.
- Actions:
- History | Blame | Raw File
1 noinst_LIBRARIES = libopenbsd-compat.a3 include $(top_builddir)/Makefile.common5 libopenbsd_compat_a_SOURCES = \6 asprintf.c \7 base64.c \8 closefrom.c \9 fmt_scaled.c \10 freezero.c \11 getdtablecount.c \12 getopt.c \13 getprogname.c \14 imsg-buffer.c \15 imsg.c \16 merge.c \17 reallocarray.c \18 recallocarray.c \19 strndup.c \20 strnlen.c \21 strsep.c \22 strtonum.c \23 imsg.h \24 tree.h26 # For MacOS, don't build the compat versions of strl{cat,cpy}, but do for all27 # other systems.28 if !HOST_DARWIN29 libopenbsd_compat_a_SOURCES += strlcat.c strlcpy.c30 endif32 if HOST_DARWIN33 libopenbsd_compat_a_SOURCES += uuid.c bsd-poll.c bsd-poll.h34 endif36 if HOST_NETBSD37 libopenbsd_compat_a_SOURCES += bsd-poll.c bsd-poll.h38 endif40 if HOST_LINUX41 libopenbsd_compat_a_SOURCES += uuid.c42 endif44 if HAVE_LINUX_LANDLOCK45 libopenbsd_compat_a_SOURCES += landlock.c46 endif48 if !HAVE_SIPHASH49 libopenbsd_compat_a_SOURCES += siphash.c siphash.h50 endif52 if !HAVE_SETPROCTITLE53 libopenbsd_compat_a_SOURCES += setproctitle.c54 endif56 EXTRA_DIST = \57 $(top_srcdir)/include/got_compat.h \58 imsg.h \59 tree.h \60 bsd-poll.h