summaryrefslogtreecommitdiff
path: root/libstdc++-v3/libmath
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/libmath
parent7baa5366a80054035856fbd1dce69ede03e82604 (diff)
downloadgcc-4c052dfe92af6e672d7bce48fa781821f0ece7fe.tar.gz
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/libmath')
-rw-r--r--libstdc++-v3/libmath/mathconf.h3
1 files changed, 3 insertions, 0 deletions
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