define _BSD_SOURCE rather then __BSD_VISIBLE

__BSD_VISIBLE was set to 0, causing issues on OpenBSD
The proper way is to set _BSD_SOURCE
This commit is contained in:
Matthieu Herrb 2023-07-05 10:47:06 +02:00
parent 1bd042e5b0
commit dbaa859f28

View file

@ -29,7 +29,7 @@ cc = meson.get_compiler('c')
add_project_arguments( add_project_arguments(
[ [
'-D_XOPEN_SOURCE=700', '-D_XOPEN_SOURCE=700',
'-D__BSD_VISIBLE', '-D_BSD_SOURCE',
'-D_NETBSD_SOURCE', '-D_NETBSD_SOURCE',
'-DSEATD_VERSION="@0@"'.format(meson.project_version()), '-DSEATD_VERSION="@0@"'.format(meson.project_version()),
'-DSEATD_DEFAULTPATH="@0@"'.format(defaultpath), '-DSEATD_DEFAULTPATH="@0@"'.format(defaultpath),