aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc/musl-posix_memalign-c++.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-05-12 08:43:49 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-05-12 08:57:02 +0000
commit875dad8a930630eb7096d148b97837046064c450 (patch)
treef926d2048c8079be62d4e65e65bc4407b6a83004 /main/gcc/musl-posix_memalign-c++.patch
parentca7e529a36790a5baa1dcab98a8e55d2f3a094ce (diff)
downloadaports-875dad8a930630eb7096d148b97837046064c450.tar.bz2
aports-875dad8a930630eb7096d148b97837046064c450.tar.xz
main/gcc: fix musl posix_memalign patch
we need to use __asm__ instead of asm
Diffstat (limited to 'main/gcc/musl-posix_memalign-c++.patch')
-rw-r--r--main/gcc/musl-posix_memalign-c++.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/gcc/musl-posix_memalign-c++.patch b/main/gcc/musl-posix_memalign-c++.patch
index 15375651eb..f3fad93aec 100644
--- a/main/gcc/musl-posix_memalign-c++.patch
+++ b/main/gcc/musl-posix_memalign-c++.patch
@@ -12,7 +12,7 @@ http://www.openwall.com/lists/musl/2013/11/10/1
-#else
-extern "C" int posix_memalign (void **, size_t, size_t) throw ();
-#endif
-+extern int __gcc_posix_memalign (void **, size_t, size_t) asm("posix_memalign");
++extern int __gcc_posix_memalign (void **, size_t, size_t) __asm__("posix_memalign");
static __inline void *
_mm_malloc (size_t size, size_t alignment)