diff --git a/src/lib/libast/sfio/sfhdr.h b/src/lib/libast/sfio/sfhdr.h index 5a5c94a7c..e0eaad51e 100644 --- a/src/lib/libast/sfio/sfhdr.h +++ b/src/lib/libast/sfio/sfhdr.h @@ -340,7 +340,13 @@ #endif #if _socket_peek +#if __FreeBSD__ && __BSD_VISIBLE +#undef __BSD_VISIBLE /* Hide conflicting SF_SYNC definition. [Added 2022-01-20. TODO: review periodically] */ #include +#define __BSD_VISIBLE 1 +#else +#include +#endif #endif /* to test for executable access mode of a file */