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
This commit is contained in:
parent
0fac482ed6
commit
cd44736010
8 changed files with 36 additions and 2 deletions
|
@ -5,6 +5,14 @@
|
|||
(demangle_array_type): Handle empty and non-constant array length.
|
||||
|
||||
2000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
|
||||
Jeff Law <law@cygnus.com>
|
||||
|
||||
* 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.
|
||||
|
||||
* aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
|
||||
* configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
|
||||
|
|
|
@ -286,6 +286,8 @@ spaces.o: $(INCDIR)/libiberty.h
|
|||
splay-tree.o: config.h $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h $(INCDIR)/ansidecl.h
|
||||
strerror.o: config.h $(INCDIR)/libiberty.h
|
||||
strsignal.o: config.h $(INCDIR)/libiberty.h
|
||||
strtol.o: config.h
|
||||
strtoul.o: config.h
|
||||
vasprintf.o: config.h
|
||||
xatexit.o: $(INCDIR)/libiberty.h
|
||||
xexit.o: config.h $(INCDIR)/libiberty.h
|
||||
|
|
|
@ -202,6 +202,9 @@
|
|||
/* Define if you have the <fcntl.h> header file. */
|
||||
#undef HAVE_FCNTL_H
|
||||
|
||||
/* Define if you have the <limits.h> header file. */
|
||||
#undef HAVE_LIMITS_H
|
||||
|
||||
/* Define if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
|
|
2
libiberty/configure
vendored
2
libiberty/configure
vendored
|
@ -1058,7 +1058,7 @@ else
|
|||
fi
|
||||
echo "$ac_t""$CPP" 1>&6
|
||||
|
||||
for ac_hdr in sys/file.h sys/param.h stdlib.h string.h unistd.h strings.h sys/time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h
|
||||
for ac_hdr in sys/file.h sys/param.h limits.h stdlib.h string.h unistd.h strings.h sys/time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h
|
||||
do
|
||||
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
||||
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
||||
|
|
|
@ -109,7 +109,7 @@ AC_SUBST_FILE(host_makefile_frag)
|
|||
# It's OK to check for header files. Although the compiler may not be
|
||||
# able to link anything, it had better be able to at least compile
|
||||
# something.
|
||||
AC_CHECK_HEADERS(sys/file.h sys/param.h stdlib.h string.h unistd.h strings.h sys/time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h)
|
||||
AC_CHECK_HEADERS(sys/file.h sys/param.h limits.h stdlib.h string.h unistd.h strings.h sys/time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h)
|
||||
AC_HEADER_SYS_WAIT
|
||||
|
||||
libiberty_AC_DECLARE_ERRNO
|
||||
|
|
|
@ -24,7 +24,12 @@ Boston, MA 02111-1307, USA. */
|
|||
#endif
|
||||
#include "libiberty.h"
|
||||
#include "sort.h"
|
||||
#ifdef HAVE_LIMITS_H
|
||||
#include <limits.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_PARAM_H
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
#ifdef HAVE_STDLIB_H
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue