mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-25 18:40:18 -04:00
fmt: include <cstdlib> for malloc/free declarations
Recent FreeBSD -CURRENT builds fail because malloc/free are used without including the proper declarations. Add <cstdlib> alongside the other standard library headers inside the existing non-module include block. This matches upstream fmt behavior and fixes builds with newer Clang/libc++ toolchains.
This commit is contained in:
parent
b5fd6f72e3
commit
78de3e54bc
1 changed files with 1 additions and 0 deletions
|
|
@ -42,6 +42,7 @@
|
|||
|
||||
#ifndef FMT_MODULE
|
||||
# include <cmath> // std::signbit
|
||||
# include <cstdlib> // std::malloc, std::free
|
||||
# include <cstddef> // std::byte
|
||||
# include <cstdint> // uint32_t
|
||||
# include <cstring> // std::memcpy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue