meson: auto-detect execvpe on FreeBSD

0667d0e0e3
This commit is contained in:
Jan Beich 2024-05-25 14:40:25 +02:00 committed by Daniel Eklöf
parent bb2e0d64e1
commit f67449700b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 8 additions and 3 deletions

View file

@ -16,6 +16,11 @@ if cc.has_function('memfd_create')
add_project_arguments('-DMEMFD_CREATE', language: 'c')
endif
# Missing on DragonFly, FreeBSD < 14.1
if cc.has_function('execvpe')
add_project_arguments('-DEXECVPE', language: 'c')
endif
utmp_backend = get_option('utmp-backend')
if utmp_backend == 'auto'
host_os = host_machine.system()