summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2008-06-17 13:44:42 +0530
committerMukund Sivaraman <muks@banu.com>2008-06-17 13:44:42 +0530
commit7dcb5f906104c6b0ac4f7a4363a07af9f9dd9e34 (patch)
tree7e8b1c68dfea2280b1b39e5b37df11ee0c2b59d3
parentc8cf89a954983b92fe4ea94706cccadfe6a148c0 (diff)
Include values.h to use LONG_MAX and LONG_MIN
-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