-- Fix build on FreeBSD: add for SIGCHLD, SIGPIPE, SIG_DFL, and signal(). -- Add typedef sighandler_t as sig_t (the FreeBSD equivalent of the Linux sighandler_t typedef). -- Add for closefrom(2). --- paddle/fluid/framework/io/shell.h.orig 2026-06-19 18:59:11 UTC +++ paddle/fluid/framework/io/shell.h @@ -27,7 +27,13 @@ #endif #include #ifndef _WIN32 +#include #include +#endif +#if defined(__FreeBSD__) +#include +/* FreeBSD uses sig_t instead of sighandler_t */ +typedef sig_t sighandler_t; #endif #include #include