From fc073aa5e1c5e93cffd7dd12ecbef1e033d5b3fd Mon Sep 17 00:00:00 2001
From: Myaamori <myaamori1993@gmail.com>
Date: Wed, 28 Oct 2020 04:14:00 +0000
Subject: [PATCH] meson: patch libass with stub dirent.h

this should probably be handled by the libass meson port at some point
---
 subprojects/libass.wrap                  | 1 +
 subprojects/packagefiles/libass/dirent.h | 6 ++++++
 2 files changed, 7 insertions(+)
 create mode 100644 subprojects/packagefiles/libass/dirent.h

diff --git a/subprojects/libass.wrap b/subprojects/libass.wrap
index 3e8e691d0..90101e922 100644
--- a/subprojects/libass.wrap
+++ b/subprojects/libass.wrap
@@ -2,3 +2,4 @@
 directory = libass
 url = https://github.com/TypesettingTools/libass.git
 revision = meson-no-rasterizer-approximation
+patch_directory = libass
diff --git a/subprojects/packagefiles/libass/dirent.h b/subprojects/packagefiles/libass/dirent.h
new file mode 100644
index 000000000..fcbd0289b
--- /dev/null
+++ b/subprojects/packagefiles/libass/dirent.h
@@ -0,0 +1,6 @@
+// libass uses dirent in a function we don't use, so just provide a dummy version
+typedef struct DIR { int dummy; } DIR;
+typedef struct dirent { char *d_name; } dirent;
+static inline DIR *opendir(const char *x) { return 0; }
+static inline struct dirent *readdir(DIR *x) { return 0; }
+static inline void closedir(DIR *x) { }
-- 
GitLab