build: Fix ssize_t detection on older versions of glibc

This commit is contained in:
Ole André Vadla Ravnås 2020-11-15 00:37:19 +00:00
parent 01b77666bc
commit 6837c81d0e

View File

@ -1273,7 +1273,7 @@ sizet_size = cc.sizeof('size_t')
if cc.get_id() == 'msvc' or cc.get_id() == 'clang-cl'
ssizet_size = cc.sizeof('SSIZE_T', prefix : '#include <BaseTsd.h>')
else
ssizet_size = cc.sizeof('ssize_t')
ssizet_size = cc.sizeof('ssize_t', prefix : '#include <unistd.h>')
endif
# Some platforms (Apple) hard-code int64_t to long long instead of