diff options
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | openbsd-compat/bsd-err.h (renamed from openbsd-compat/err.h) | 0 | ||||
-rw-r--r-- | openbsd-compat/xmalloc.c | 4 |
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> |