lobase

Linux port of OpenBSDs userland.
Log | Files | Refs | README

commit 5146697b9cbce0e6871802824c3373b90508f6ab
parent c45e2f21dc9116d31e723939f647fe1b55c69d44
Author: Duncaen <mail@duncano.de>
Date:   Tue,  7 Mar 2017 03:15:31 +0100

lib/libopenbsd: fix conditional function inclusion

Diffstat:
lib/libopenbsd/Makefile | 18++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/lib/libopenbsd/Makefile b/lib/libopenbsd/Makefile @@ -18,36 +18,38 @@ SRCS = base64.c closefrom.c \ SRCS += gen/errc.c gen/fts.c gen/warnc.c gen/verrc.c gen/vwarnc.c gen/setmode.c\ SRCS += stdio/fgetwln.c -ifneq (1,$(HAVE_EXPLICIT_BZERO)) +include config.mk + +ifneq ($(HAVE_EXPLICIT_BZERO),1) SRCS += string/explicit_bzero.c endif -ifndef (1,$(HAVE_REALLOCARRAY)) +ifneq ($(HAVE_REALLOCARRAY),1) SRCS += stdlib/reallocarray.c endif -ifndef (1,$(HAVE_STRLCPY)) +ifneq ($(HAVE_STRLCPY),1) SRCS += string/strlcpy.c endif -ifndef (1,$(HAVE_STRLCAT)) +ifneq ($(HAVE_STRLCAT),1) SRCS += string/strlcat.c endif -ifndef (1,$(HAVE_ISSETUGID)) +ifneq ($(HAVE_ISSETUGID),1) SRCS += issetugid.c endif -ifndef (1,$(HAVE_FGETLN)) +ifneq ($(HAVE_FGETLN),1) SRCS += stdio/fgetln.c endif -ifndef (1,$(HAVE_GETENTROPY)) +ifneq ($(HAVE_GETENTROPY),1) SRCS += getentropy_linux.c getentropy_linux.o : CPPFLAGS += -D_GNU_SOURCE endif -ifndef (1,$(HAVE_GETDTABLECOUNT)) +ifneq ($(HAVE_GETDTABLECOUNT),1) SRCS += sys/getdtablecount.c endif