Merge branch 'fix/ssize-detection-on-old-glibc' into 'master'

build: Fix ssize_t detection on older versions of glibc

See merge request GNOME/glib!1855
This commit is contained in:
Sebastian Dröge 2021-01-06 08:35:42 +00:00
commit 86c9691a0a

View File

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