dde_bsd: pull strlcpy in via contrib code

For historical reason the 'strlcpy' implemention was directly pull in
into the emulation environment. There is, however, no reason not to
use the contrib sources in the usual fashion.

Issue #3929.
This commit is contained in:
Josef Söntgen
2020-06-19 15:30:33 +02:00
committed by Christian Helmuth
parent 7193902cc0
commit bdb71d94c2
6 changed files with 14 additions and 44 deletions

View File

@@ -25,6 +25,9 @@ CC_OPT += -fno-builtin-printf -fno-builtin-snprintf -fno-builtin-vsnprintf \
CC_OPT += -D_KERNEL
# libkern
SRC_C += lib/libkern/strlcpy.c
# disable false warning in audio.c:786
CC_C_OPT += -Wno-maybe-uninitialized

View File

@@ -9,7 +9,7 @@ ifeq ($(called_from_lib_mk),yes)
BSD_CONTRIB_DIR := $(call select_from_ports,dde_bsd)/src/lib/audio
BSD_EMUL_H := $(REP_DIR)/src/lib/audio/include/bsd_emul.h
SCAN_DIRS := $(addprefix $(BSD_CONTRIB_DIR)/, dev sys)
SCAN_DIRS := $(addprefix $(BSD_CONTRIB_DIR)/, dev lib sys)
GEN_INCLUDES := $(shell grep -rIh "^\#include .*" $(SCAN_DIRS) |\
sed "s/^\#include [^<\"]*[<\"]\([^>\"]*\)[>\"].*/\1/" | sort | uniq)