mirror of https://github.com/odrling/Aegisub
meson: patch libass with stub dirent.h
this should probably be handled by the libass meson port at some point
This commit is contained in:
parent
03de8929d4
commit
2510ef25c2
|
@ -2,3 +2,4 @@
|
||||||
directory = libass
|
directory = libass
|
||||||
url = https://github.com/TypesettingTools/libass.git
|
url = https://github.com/TypesettingTools/libass.git
|
||||||
revision = meson-no-rasterizer-approximation
|
revision = meson-no-rasterizer-approximation
|
||||||
|
patch_directory = libass
|
||||||
|
|
|
@ -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) { }
|
Loading…
Reference in New Issue