diff options
author | Mukund Sivaraman <muks@banu.com> | 2008-06-17 13:44:42 +0530 |
---|---|---|
committer | Mukund Sivaraman <muks@banu.com> | 2008-06-17 13:44:42 +0530 |
commit | 7dcb5f906104c6b0ac4f7a4363a07af9f9dd9e34 (patch) | |
tree | 7e8b1c68dfea2280b1b39e5b37df11ee0c2b59d3 | |
parent | c8cf89a954983b92fe4ea94706cccadfe6a148c0 (diff) | |
download | tinyproxy-7dcb5f906104c6b0ac4f7a4363a07af9f9dd9e34.tar.gz tinyproxy-7dcb5f906104c6b0ac4f7a4363a07af9f9dd9e34.zip |
Include values.h to use LONG_MAX and LONG_MIN
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | src/common.h | 3 |
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 |