1
0
mirror of https://github.com/bgp/bgpq4.git synced 2024-05-11 05:55:05 +00:00

compat: don't build when strlcpy is present (#47)

This commit is contained in:
Caleb Xu
2021-08-19 04:19:44 -04:00
committed by GitHub
parent ed8ee8368d
commit af202a821b
2 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
SUBDIRS = include compat
SUBDIRS = include
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -I$(top_srcdir)/include
@ -10,7 +10,11 @@ bin_PROGRAMS=bgpq4
dist_man8_MANS=bgpq4.8
bgpq4_LDADD = $(PLATFORM_LDADD) $(PROG_LDADD)
if !HAVE_STRLCPY
SUBDIRS += compat
bgpq4_LDADD += $(top_builddir)/compat/libcompat.la
endif
bgpq4_SOURCES=main.c extern.h printer.c expander.c \
sx_maxsockbuf.c \

View File

@ -2,9 +2,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/include
noinst_LTLIBRARIES = libcompat.la
libcompat_la_SOURCES =
libcompat_la_LIBADD = $(PLATFORM_LDADD)
if !HAVE_STRLCPY
libcompat_la_SOURCES += strlcpy.c
endif
libcompat_la_SOURCES = strlcpy.c