mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 11:53:00 -04:00
Do not build strlcpy.c when it will have no code.
This commit is contained in:
parent
81ea0c4c7a
commit
4914620025
@ -156,6 +156,9 @@ SYS_INCLUDES =
|
||||
|
||||
endif
|
||||
|
||||
if STRLCPY_IMPL
|
||||
SYS_SRC += strlcpy.c
|
||||
endif
|
||||
if SELECT_BACKEND
|
||||
SYS_SRC += select.c
|
||||
endif
|
||||
@ -200,7 +203,6 @@ CORE_SRC = \
|
||||
evutil_time.c \
|
||||
listener.c \
|
||||
log.c \
|
||||
strlcpy.c \
|
||||
$(SYS_SRC)
|
||||
|
||||
EXTRAS_SRC = \
|
||||
|
@ -362,6 +362,7 @@ AC_CHECK_FUNCS([ \
|
||||
usleep \
|
||||
vasprintf \
|
||||
])
|
||||
AM_CONDITIONAL(STRLCPY_IMPL, [test x"$ac_cv_func_strlcpy" = xno])
|
||||
|
||||
AC_CACHE_CHECK(
|
||||
[for getaddrinfo],
|
||||
|
Loading…
x
Reference in New Issue
Block a user