Improve FreeBSD compatibility

First draft. Need to investigate why upstream patches include certain
function that appear to exist in FreeBSD 14.2.
This commit is contained in:
Antonio SJ Musumeci 2025-01-12 14:55:04 -06:00
parent dd906c8a4c
commit b83bd5fd14
10 changed files with 117 additions and 27 deletions

View file

@ -16,8 +16,12 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifdef __FreeBSD__
#define O_TMPFILE 0
#else
#define _GNU_SOURCE
#define _POSIX_C_SOURCE 200809L
//#define _POSIX_C_SOURCE 200809L
#endif
#include <assert.h>
#include <dlfcn.h>