]> git.sesse.net Git - bcachefs-tools-debian/commit
Fix building on musl
authorYuxuan Shui <yshuiv7@gmail.com>
Sun, 3 May 2020 18:21:17 +0000 (19:21 +0100)
committerYuxuan Shui <yshuiv7@gmail.com>
Tue, 5 May 2020 09:29:31 +0000 (10:29 +0100)
commit5bc48bd428303aabe19c196a47d1d89a605397be
tree10d75608bf415e37810e7846c80193218e35b4e5
parent6e9f4602408e9bcdb33bce6ab3a2d8562613d6ce
Fix building on musl

* Add missing linux/stddef.h includes
* Explicitly cast PAGE_SIZE to size_t. PAGE_SIZE is defined without UL
  suffix in musl
* Musl doesn't define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP, so
  initialize the mutexes with pthread_once.
include/linux/slab.h
libbcachefs/bcachefs.h
libbcachefs/bcachefs_format.h
libbcachefs/siphash.c
linux/preempt.c