build: Remove 'name' kwarg from has_function calls

They cause warnings with later meson versions.
This commit is contained in:
Timm Bäder 2018-04-21 19:30:12 +02:00
parent f483fd539e
commit 8d11e7685a

View File

@ -189,9 +189,9 @@ gdk_sources += [
]
if wayland_enabled or broadway_enabled
if cc.has_function('shm_open', name : 'shm_open() in libc')
if cc.has_function('shm_open')
shmlib = []
elif cc.has_function('shm_open', args : '-lrt', name : 'shm_open() in librt')
elif cc.has_function('shm_open', args : '-lrt')
shmlib = cc.find_library('rt')
else
shmlib = []