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 changed files with 7 additions and 0 deletions
|
@ -2,3 +2,4 @@
|
|||
directory = libass
|
||||
url = https://github.com/TypesettingTools/libass.git
|
||||
revision = meson-no-rasterizer-approximation
|
||||
patch_directory = libass
|
||||
|
|
6
subprojects/packagefiles/libass/dirent.h
Normal file
6
subprojects/packagefiles/libass/dirent.h
Normal file
|
@ -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 a new issue