File: fix-malloc-for-newer-glibc.patch

package info (click to toggle)
zfs-fuse 0.7.0-25
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,800 kB
  • sloc: ansic: 154,045; sh: 9,707; asm: 1,690; perl: 367; xml: 300; python: 269; makefile: 83
file content (14 lines) | stat: -rw-r--r-- 472 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Newer GLibC changes the way __malloc_initialize_hook is initialized
Author: Ben Collins <ben.c@servergy.com>

--- zfs-fuse-0.7.0.orig/src/lib/libumem/malloc.c
+++ zfs-fuse-0.7.0/src/lib/libumem/malloc.c
@@ -453,7 +453,7 @@ static void __attribute__((constructor))
 	}
 }
 
-void (*__malloc_initialize_hook)(void) = umem_malloc_init_hook;
+void (* __volatile __malloc_initialize_hook)(void) = umem_malloc_init_hook;
 
 #else
 void __attribute__((constructor))