aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorespie <espie@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-16 12:49:19 +0000
committerespie <espie@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-16 12:49:19 +0000
commit4c052dfe92af6e672d7bce48fa781821f0ece7fe (patch)
tree7691a1c643ddb99ba2936589a517ff3aa8d9694d /libstdc++-v3
parent7baa5366a80054035856fbd1dce69ede03e82604 (diff)
2001-08-16 Marc Espie <espie@openbsd.org>
* configure.in: Check for <sys/types.h>. * configure: Rebuild. * config.h.in: Rebuild. * libmath/mathconf.h: Include <sys/types.h> prior to <machine/endian.h> if available. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44935 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog7
-rwxr-xr-xlibstdc++-v3/configure6
-rw-r--r--libstdc++-v3/configure.in4
-rw-r--r--libstdc++-v3/libmath/mathconf.h3
4 files changed, 15 insertions, 5 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 84bf38cfed1..471d7ba0d69 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,10 @@
+2001-08-16 Marc Espie <espie@openbsd.org>
+ * configure.in: Check for <sys/types.h>.
+ * configure: Rebuild.
+ * config.h.in: Rebuild.
+ * libmath/mathconf.h: Include <sys/types.h> prior to
+ <machine/endian.h> if available.
+
2001-08-15 Andreas Schwab <schwab@suse.de>
* configure.target (cpu_include_dir): Set to `config/cpu/m68k' for
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index ef41a45a7d7..9a9ddde928c 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -2619,7 +2619,7 @@ if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
else
_cv_gnu_make_command='' ;
for a in "${MAKE-make}" make gmake gnumake ; do
- if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
+ if ($a --version 2> /dev/null | grep -c GNU > /dev/null )
then
_cv_gnu_make_command=$a ;
break;
@@ -3836,8 +3836,8 @@ if test -n "$with_cross_host" || test x"$build" != x"$host"; then
# Construct linux crosses by hand, eliminating bits that need ld...
# Check for available headers.
for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
- machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
- float.h inttypes.h
+ machine/endian.h machine/param.h sys/machine.h sys/types.h \
+ fp.h locale.h float.h inttypes.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
diff --git a/libstdc++-v3/configure.in b/libstdc++-v3/configure.in
index bc91990564f..00bb59f32e5 100644
--- a/libstdc++-v3/configure.in
+++ b/libstdc++-v3/configure.in
@@ -72,8 +72,8 @@ if test -n "$with_cross_host" || test x"$build" != x"$host"; then
# Construct linux crosses by hand, eliminating bits that need ld...
# Check for available headers.
AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
- machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
- float.h inttypes.h])
+ machine/endian.h machine/param.h sys/machine.h sys/types.h \
+ fp.h locale.h float.h inttypes.h])
# GLIBCPP_CHECK_COMPILER_FEATURES
SECTION_FLAGS='-ffunction-sections -fdata-sections'
diff --git a/libstdc++-v3/libmath/mathconf.h b/libstdc++-v3/libmath/mathconf.h
index 1e874990dd1..087631a5687 100644
--- a/libstdc++-v3/libmath/mathconf.h
+++ b/libstdc++-v3/libmath/mathconf.h
@@ -34,6 +34,9 @@
# include <endian.h>
#else
# ifdef HAVE_MACHINE_ENDIAN_H
+# ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+# endif
# include <machine/endian.h>
# else
# ifdef HAVE_SYS_MACHINE_H