aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2018-05-31 23:39:08 +0200
committerGilles Chehade <gilles@poolp.org>2018-05-31 23:39:08 +0200
commit2ef9a5965fc2bc6b5ce2b075972c651dcf1f8b8e (patch)
tree6b2a5644fb9d44ab4583ed230bf54a893e9d873f
parentadd missing include (diff)
downloadOpenSMTPD-2ef9a5965fc2bc6b5ce2b075972c651dcf1f8b8e.tar.xz
OpenSMTPD-2ef9a5965fc2bc6b5ce2b075972c651dcf1f8b8e.zip
fix build
-rw-r--r--configure.ac1
-rw-r--r--openbsd-compat/bsd-err.h (renamed from openbsd-compat/err.h)0
-rw-r--r--openbsd-compat/xmalloc.c4
3 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index aab15552..6c045bf2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -116,6 +116,7 @@ AC_CHECK_HEADERS([ \
arpa/nameser_compat.h \
crypt.h \
dirent.h \
+ err.h \
fcntl.h \
getopt.h \
grp.h \
diff --git a/openbsd-compat/err.h b/openbsd-compat/bsd-err.h
index f75d0eb4..f75d0eb4 100644
--- a/openbsd-compat/err.h
+++ b/openbsd-compat/bsd-err.h
diff --git a/openbsd-compat/xmalloc.c b/openbsd-compat/xmalloc.c
index 0f2da917..a6d5c176 100644
--- a/openbsd-compat/xmalloc.c
+++ b/openbsd-compat/xmalloc.c
@@ -15,7 +15,11 @@
#include "includes.h"
+#ifdef HAVE_ERR_H
#include <err.h>
+#else
+#include "bsd-err.h"
+#endif
#include <limits.h>
#include <stdarg.h>
#include <stdio.h>