[Bug 259975] sys/file.h fails when -D_POSIX_C_SOURCE=200809L is given

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 21 Nov 2021 20:17:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259975

--- Comment #5 from Warner Losh <imp@FreeBSD.org> ---
(In reply to Yuri Victorovich from comment #4)
  set (HDF_EXTRA_C_FLAGS -D_POSIX_C_SOURCE=200809L)
needs to be removed from
ThirdParty/hdf5/vtkhdf5/config/cmake_ext_mod/ConfigureChecks.cmake in the
FreeBSD port. It uses flock, which isn't in POSIX, so setting POSIX_C_SOURCE is
likely inappropriate.

It's also a bug that we try to define xfile when __BSD_VISIBLE is defined, but
fixing that wouldn't fix hdf5 inside of vtk.

-- 
You are receiving this mail because:
You are the assignee for the bug.