summaryrefslogtreecommitdiff
path: root/libiberty/strtol.c
diff options
context:
space:
mode:
authorMichael Sokolov <msokolov@ivan.Harhan.ORG>2000-07-23 19:13:46 +0000
committerJeff Law <law@gcc.gnu.org>2000-07-23 13:13:46 -0600
commitcd44736010929b5e06f932279960a16165c59449 (patch)
tree64868a9a44b9667e36f20169a0e9c39e713a113e /libiberty/strtol.c
parent0fac482ed6eba252d1b1753f48a49da7fa9175cc (diff)
configure.in (AC_CHECK_HEADERS): Add limits.h.
* configure.in (AC_CHECK_HEADERS): Add limits.h. * configure, config.in: Regenerate. * sort.c: Portably #include <limits.h> and/or <sys/param.h>. * strtol.c, strtoul.c: #include "config.h". Portably #include <limits.h> and/or <sys/param.h>. * Makefile.in (strtol.o, strtoul.o): Update dependencies. Co-Authored-By: Jeffrey A Law <law@cygnus.com> From-SVN: r35211
Diffstat (limited to 'libiberty/strtol.c')
-rw-r--r--libiberty/strtol.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libiberty/strtol.c b/libiberty/strtol.c
index b4c66c403f7..c05d0dd76a2 100644
--- a/libiberty/strtol.c
+++ b/libiberty/strtol.c
@@ -28,7 +28,15 @@
* SUCH DAMAGE.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+#ifdef HAVE_LIMITS_H
#include <limits.h>
+#endif
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
#include <ctype.h>
#include <errno.h>
#ifdef NEED_DECLARATION_ERRNO