aboutsummaryrefslogtreecommitdiff
path: root/libiberty/strtol.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-23 19:13:46 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-23 19:13:46 +0000
commita451eef0cb4c54cbe5ec2d32f7cb773e999d564d (patch)
tree64868a9a44b9667e36f20169a0e9c39e713a113e /libiberty/strtol.c
parent65bcf503de49123432d4f9ff8344af729b738bb5 (diff)
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35211 138bc75d-0d04-0410-961f-82ee72b054a4
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