diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index 3de1499725ea3..4da2571de8ad4 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -29422,6 +29422,8 @@ else $as_echo "#define HAVE_MEMALIGN 1" >>confdefs.h + $as_echo "#define HAVE_ALIGNED_ALLOC 1" >>confdefs.h + elif test "x$with_headers" != "xno"; then # Base decisions on target environment. diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac index 05cdfcddbc43b..3d05e24229420 100644 --- a/libstdc++-v3/configure.ac +++ b/libstdc++-v3/configure.ac @@ -357,6 +357,7 @@ else AC_DEFINE(HAVE_ICONV) AC_DEFINE(HAVE_MEMALIGN) + AC_DEFINE(HAVE_ALIGNED_ALLOC) elif test "x$with_headers" != "xno"; then GLIBCXX_CROSSCONFIG fi