“0a7958b3f1127da43b21e8261ae9186aa75e56c9”上不存在“paddlespeech/dataset/s2t/avg_model.py”
提交 a8545b85 编写于 作者: Y yejianwu

fix 'sysconf(_SC_PAGESIZE)' to get page size, instead of 'getpagesize()'...

fix 'sysconf(_SC_PAGESIZE)' to get page size, instead of 'getpagesize()' (which is not specified in POSIX.1)
上级 aca65015
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
namespace { namespace {
inline void AdviseFree(void *addr, size_t length) { inline void AdviseFree(void *addr, size_t length) {
int page_size = getpagesize(); int page_size = sysconf(_SC_PAGESIZE);
void *addr_aligned = void *addr_aligned =
reinterpret_cast<void *>( reinterpret_cast<void *>(
(reinterpret_cast<uintptr_t>(addr) + page_size - 1) (reinterpret_cast<uintptr_t>(addr) + page_size - 1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册