From 7dcb5f906104c6b0ac4f7a4363a07af9f9dd9e34 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Tue, 17 Jun 2008 13:44:42 +0530 Subject: Include values.h to use LONG_MAX and LONG_MIN --- configure.ac | 3 ++- src/common.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 #endif +#ifdef HAVE_VALUES_H +# include +#endif #ifdef HAVE_INTTYPES_H # include #endif -- cgit v1.2.3