From 79d4eade83e9ab8ab30e84fb2335dc4c6e498d48 Mon Sep 17 00:00:00 2001 From: Sasha Koss Date: Sun, 15 Apr 2018 15:52:58 +0600 Subject: [PATCH] Add missing 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); ^~~~~~~~ ``` --- tdutils/td/utils/port/path.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tdutils/td/utils/port/path.h b/tdutils/td/utils/port/path.h index 727ee173..e3df18f4 100644 --- a/tdutils/td/utils/port/path.h +++ b/tdutils/td/utils/port/path.h @@ -19,6 +19,7 @@ #include #if TD_PORT_POSIX +#include #include #include #endif