| 1 |
Description: Fix build with gcc-16 |
| 2 |
Author: Marcos Talau <[email protected]> |
| 3 |
Bug-Debian: https://bugs.debian.org/1133523 |
| 4 |
Last-Update: 2026-04-21 |
| 5 |
|
| 6 |
--- libmmap-allocator-0.4.0+git20200122.adbfbe1.orig/mmap_allocator.h |
| 7 |
+++ libmmap-allocator-0.4.0+git20200122.adbfbe1/mmap_allocator.h |
| 8 |
@@ -36,7 +36,7 @@ public: |
| 9 |
fprintf(stderr, "Alloc %zd bytes.\n", n*sizeof(T)); |
| 10 |
} |
| 11 |
if (access_mode == DEFAULT_STL_ALLOCATOR) { |
| 12 |
|
| 13 |
+ return std::allocator<T>::allocate(n); |
| 14 |
} else { |
| 15 |
if (n == 0) { |
| 16 |
return NULL; |