aboutsummaryrefslogtreecommitdiffstats
path: root/openbsd-compat
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/bsd-err.h (renamed from openbsd-compat/err.h)0
-rw-r--r--openbsd-compat/xmalloc.c4
2 files changed, 4 insertions, 0 deletions
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>