Skip to content

Commit 44e3af1

Browse files
committed
Fix PATH_MAX build error on Linux #246
1 parent 87b6b31 commit 44e3af1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plutovg/source/plutovg-font.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,12 @@ plutovg_font_face_t* plutovg_font_face_cache_get(plutovg_font_face_cache_t* cach
696696
#include <fcntl.h>
697697
#include <unistd.h>
698698
#include <dirent.h>
699+
700+
#ifdef __linux__
701+
#include <linux/limits.h>
702+
#else
699703
#include <limits.h>
704+
#endif
700705

701706
#include <sys/mman.h>
702707
#include <sys/stat.h>

0 commit comments

Comments
 (0)