aboutsummaryrefslogtreecommitdiffstats
path: root/openbsd-compat
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2019-11-17 13:48:09 +0100
committerGilles Chehade <gilles@poolp.org>2019-11-17 13:48:09 +0100
commit31491433da53737d05b1b4592e9a86ac3542a77d (patch)
treed145fbe79fe67052aaa03956d723d56fefd64124 /openbsd-compat
parentremove unused functions unsetenv(), tcsendbreak(), tcgetpgrp(), (diff)
downloadOpenSMTPD-31491433da53737d05b1b4592e9a86ac3542a77d.tar.xz
OpenSMTPD-31491433da53737d05b1b4592e9a86ac3542a77d.zip
conditionally build event_asr_run()
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsd-compat/Makefile.am b/openbsd-compat/Makefile.am
index 7dcb8952..8d20a509 100644
--- a/openbsd-compat/Makefile.am
+++ b/openbsd-compat/Makefile.am
@@ -5,7 +5,6 @@ libopenbsd_compat_a_SOURCES = empty.c
libopenbsd_compat_a_SOURCES += arc4random.c
libopenbsd_compat_a_SOURCES += base64.c
libopenbsd_compat_a_SOURCES += bsd-misc.c
-libopenbsd_compat_a_SOURCES += event_asr_run.c
if NEED_BASENAME
@@ -40,6 +39,10 @@ if NEED_ERRC
libopenbsd_compat_a_SOURCES += errc.c
endif
+if NEED_EVENT_ASR_RUN
+libopenbsd_compat_a_SOURCES += event_asr_run.c
+endif
+
if NEED_EXPLICIT_BZERO
libopenbsd_compat_a_SOURCES += explicit_bzero.c
endif