You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
common: build fixes for FreeBSD (stat64/lstat64, headers, logging)
These are the core FreeBSD portability changes extracted from the FreeBSD ports tree work. The port currently is still under review.
Port PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291679
Port review: https://reviews.freebsd.org/D54230
The Patches:
- Add FreeBSD compatibility for stat64/lstat64 by mapping them to stat/lstat (which are 64 bit by default on FreeBSD)
- Include missing system headers in the path/parameter helper so struct stat and related macros are consistently available
- Fix MFU_LOG(... "errno=%d %s" ...) callsites in mfu_util.c to actually pass both errno and strerrno(errno) (prevents format/argument mismatch and undefined behavior)
- Include <fcntl.h> in mfu_util.c for file/flag-related definitions used by the code on non-Linux systems
0 commit comments