aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-03-07 03:15:31 +0100
committerDuncaen <mail@duncano.de>2017-03-07 03:15:31 +0100
commit5146697b9cbce0e6871802824c3373b90508f6ab (patch)
treef9dec0ea6210b214d1e2e5ee13d4f9881b5ebb0b
parentc45e2f21dc9116d31e723939f647fe1b55c69d44 (diff)
downloadlobase-5146697b9cbce0e6871802824c3373b90508f6ab.tar.gz
lib/libopenbsd: fix conditional function inclusion
-rw-r--r--lib/libopenbsd/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/libopenbsd/Makefile b/lib/libopenbsd/Makefile
index 691463a..11c9a02 100644
--- 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