darwin: Locate libffi with cc.find_library() rather than dependency()

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
Jeremy Huddleston Sequoia 2023-01-27 15:02:01 -08:00
parent fa50af6379
commit 8d62bfe3a4
2 changed files with 10 additions and 1 deletions

View file

@ -40,7 +40,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"