summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--configure.ac3
-rw-r--r--src/common.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 5971bc0..05b5c72 100644
--- a/configure.ac
+++ b/configure.ac
@@ -198,7 +198,8 @@ AC_CHECK_HEADERS([sys/ioctl.h sys/mman.h sys/resource.h \
sys/un.h arpa/inet.h netinet/in.h \
assert.h ctype.h errno.h fcntl.h grp.h io.h libintl.h \
netdb.h pwd.h regex.h signal.h stdarg.h stddef.h stdio.h \
- sysexits.h syslog.h time.h wchar.h wctype.h])
+ sysexits.h syslog.h time.h wchar.h wctype.h \
+ values.h])
dnl OpenBSD machines don't like having malloc included (even if it's present)
dnl as they expect you to use stdlib.h
diff --git a/src/common.h b/src/common.h
index 78d964e..551d0f9 100644
--- a/src/common.h
+++ b/src/common.h
@@ -35,6 +35,9 @@
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
+#ifdef HAVE_VALUES_H
+# include <values.h>
+#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif