mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
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:
committed by
Christian Helmuth
parent
7193902cc0
commit
bdb71d94c2
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user