Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 683749 Details for
Bug 764056
media-libs/openal fails to build with gcc-11
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
replace std::aligned_alloc with ::aligned_alloc
openal-1.21.0-c++.patch (text/plain), 824 bytes, created by
Helmut Jarausch
on 2021-01-19 16:39:06 UTC
(
hide
)
Description:
replace std::aligned_alloc with ::aligned_alloc
Filename:
MIME Type:
Creator:
Helmut Jarausch
Created:
2021-01-19 16:39:06 UTC
Size:
824 bytes
patch
obsolete
>--- a/common/almalloc.cpp.ORIG 2020-11-04 11:00:35.000000000 +0100 >+++ b/common/almalloc.cpp 2021-01-19 17:19:18.980519245 +0100 >@@ -20,7 +20,7 @@ > > #if defined(HAVE_STD_ALIGNED_ALLOC) > size = (size+(alignment-1))&~(alignment-1); >- return std::aligned_alloc(alignment, size); >+ return ::aligned_alloc(alignment, size); > #elif defined(HAVE_POSIX_MEMALIGN) > void *ret{}; > if(posix_memalign(&ret, alignment, size) == 0) >--- a/CMakeLists.txt.ORIG 2021-01-19 17:13:01.837540027 +0100 >+++ b/CMakeLists.txt 2021-01-19 17:19:03.291520110 +0100 >@@ -475,7 +475,7 @@ > check_cxx_source_compiles("#include <cstdlib> > int main() > { >- void *ptr{std::aligned_alloc(alignof(int), sizeof(int))}; >+ void *ptr{::aligned_alloc(alignof(int), sizeof(int))}; > std::free(ptr); > return 0; > }" HAVE_STD_ALIGNED_ALLOC)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 764056
:
681403
| 683749