diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-06-14 12:10:48 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2024-06-14 15:24:14 +0100 |
commit | 161efd677458f20d13ee1018a4d5e3964febd508 (patch) | |
tree | fdda2ae641266267e056b17ae17a8cc920650eb8 | |
parent | 896e043830fa4bc391db5f3cc2c33496cb8aa32e (diff) | |
download | gcc-161efd677458f20d13ee1018a4d5e3964febd508.zip gcc-161efd677458f20d13ee1018a4d5e3964febd508.tar.gz gcc-161efd677458f20d13ee1018a4d5e3964febd508.tar.bz2 |
libstdc++: Fix declaration of posix_memalign for freestanding
Thanks to Jérôme Duval for noticing this.
libstdc++-v3/ChangeLog:
* libsupc++/new_opa.cc [!_GLIBCXX_HOSTED]: Fix declaration of
posix_memalign.
-rw-r--r-- | libstdc++-v3/libsupc++/new_opa.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/libsupc++/new_opa.cc b/libstdc++-v3/libsupc++/new_opa.cc index 35606e1..c7c7e79 100644 --- a/libstdc++-v3/libsupc++/new_opa.cc +++ b/libstdc++-v3/libsupc++/new_opa.cc @@ -47,7 +47,7 @@ using std::size_t; extern "C" { # if _GLIBCXX_HAVE_POSIX_MEMALIGN - void *posix_memalign(void **, size_t alignment, size_t size); + int posix_memalign(void **, size_t alignment, size_t size); # elif _GLIBCXX_HAVE_ALIGNED_ALLOC void *aligned_alloc(size_t alignment, size_t size); # elif _GLIBCXX_HAVE__ALIGNED_MALLOC |