src/history.cpp:273:29: error: 'bzero' was not declared in this scope on illumos
Build of fish 3.0.0 on OpenIndiana 2018.10 (illumos kernel) fails with:
CXX obj/history.o src/history.cpp: In static member function 'static bool history_file_contents_t::read_from_fd(int, void*, size_t)': src/history.cpp:273:29: error: 'bzero' was not declared in this scope bzero(ptr, remaining); ^
#include <strings.h> in src/history.cpp fixed it for me.
illumos bzero(3C) man page: https://illumos.org/man/3c/bzero.