* lib/stdlib.in.h (aligned_alloc): Enable the C++ alias warning only on
glibc systems.
+2022-09-02 Bruno Haible <bruno@clisp.org>
+
+ aligned_alloc: Fix compilation error in C++ mode on Solaris 11.
+ * lib/stdlib.in.h (aligned_alloc): Enable the C++ alias warning only on
+ glibc systems.
+
2022-09-02 Bruno Haible <bruno@clisp.org>
getdomainname: Fix compilation error in C++ mode on Solaris 11.
_GL_CXXALIAS_SYS (aligned_alloc, void *, (size_t alignment, size_t size));
# endif
# endif
-# if @HAVE_ALIGNED_ALLOC@
+# if (__GLIBC__ >= 2) && @HAVE_ALIGNED_ALLOC@
_GL_CXXALIASWARN (aligned_alloc);
# endif
#else