this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

libsyscall: Fix os_alloc_table not being exported in the static build

I had to re-apply the old fix that I accidentally removed when I updated libsyscall

+6
+6
src/kernel/libsyscall/os/alloc_once.c
··· 36 36 37 37 __attribute__((visibility("default"))) 38 38 extern struct _os_alloc_once_s _os_alloc_once_table[]; 39 + #ifdef DARLING 40 + // for some reason, the linker doesn't see uninitialized symbols in static libraries 41 + // so we need to initialize this so dyld can use it 42 + struct _os_alloc_once_s _os_alloc_once_table[OS_ALLOC_ONCE_KEY_MAX] = { 0 }; 43 + #else 39 44 struct _os_alloc_once_s _os_alloc_once_table[OS_ALLOC_ONCE_KEY_MAX]; 45 + #endif