mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-07 04:06:37 -05:00
darwin: Locate libffi with cc.find_library() rather than dependency()
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
4ee79756e0
commit
0b01986b0b
2 changed files with 10 additions and 1 deletions
|
|
@ -82,7 +82,12 @@ if get_option('libraries')
|
|||
# Otherwise, assume that epoll(7) is supported natively.
|
||||
epoll_dep = []
|
||||
endif
|
||||
ffi_dep = dependency('libffi')
|
||||
|
||||
if host_machine.system() == 'darwin'
|
||||
ffi_dep = cc.find_library('ffi')
|
||||
else
|
||||
ffi_dep = dependency('libffi')
|
||||
endif
|
||||
|
||||
decls = [
|
||||
{ 'header': 'sys/signalfd.h', 'symbol': 'SFD_CLOEXEC' },
|
||||
|
|
|
|||
|
|
@ -38,7 +38,11 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <time.h>
|
||||
#ifdef __APPLE__
|
||||
#include <ffi/ffi.h>
|
||||
#else
|
||||
#include <ffi.h>
|
||||
#endif
|
||||
|
||||
#include "wayland-util.h"
|
||||
#include "wayland-private.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue