From cca27e95cf2bf057b2bbea93702135da3ca7be45 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sat, 31 Dec 2016 10:03:09 -0800 Subject: Avoid the need for ssize_t. Limit read() and write() requests to sizes that fit in an int. This allows storing the return value in an int, and avoiding the need to use or construct an ssize_t type. This is required for Microsoft C, whose _read and _write functions take an unsigned request and return an int. --- configure | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'configure') diff --git a/configure b/configure index e0c07b7..e974d1f 100755 --- a/configure +++ b/configure @@ -465,23 +465,8 @@ fi echo >> configure.log -# check for ssize_t -cat > $test.c < -ssize_t dummy = 0; -EOF -if try $CC -c $CFLAGS $test.c; then - echo "Checking for ssize_t... Yes." | tee -a configure.log - need_ssizet=0 -else - echo "Checking for ssize_t... No." | tee -a configure.log - need_ssizet=1 -fi - -echo >> configure.log - # find the size_t integer type, if needed -if test $need_sizet -eq 1 -o $need_ssizet -eq 1; then +if test $need_sizet -eq 1; then cat > $test.c <> configure.log # check for large file support, and if none, check for fseeko() -- cgit v1.2.1