Add missing <limits.h> so PATH_MAX would be available
It fixes an error that happens during building on Alpine Linux: ``` In file included from /tmp/td/tdutils/td/utils/port/path.cpp:7:0: /tmp/td/tdutils/td/utils/port/path.h: In function 'td::Status td::walk_path(td::CSlice, Func&&)': /tmp/td/tdutils/td/utils/port/path.h:167:21: error: 'PATH_MAX' was not declared in this scope curr_path.reserve(PATH_MAX + 10); ^~~~~~~~ ```
This commit is contained in:
parent
d9a18a064f
commit
79d4eade83
@ -19,6 +19,7 @@
|
||||
#include <utility>
|
||||
|
||||
#if TD_PORT_POSIX
|
||||
#include <limits.h>
|
||||
#include <dirent.h>
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user