openwrtv3/package/libs/uclibc++/patches/040-delete-c++14.patch
Felix Fietkau b948c9371b uclibc++: fix build with gcc 6.1.0, which defaults to using C++14 ABI
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-15 14:18:01 +02:00

20 lines
438 B
Diff

--- a/src/del_op.cpp
+++ b/src/del_op.cpp
@@ -24,3 +24,7 @@
_UCXXEXPORT void operator delete(void* ptr) throw(){
free(ptr);
}
+
+_UCXXEXPORT void operator delete(void* ptr, size_t size) throw(){
+ free(ptr);
+}
--- a/src/del_opv.cpp
+++ b/src/del_opv.cpp
@@ -24,3 +24,7 @@
_UCXXEXPORT void operator delete[](void * ptr) throw(){
free(ptr);
}
+
+_UCXXEXPORT void operator delete[](void * ptr, size_t size) throw(){
+ free(ptr);
+}