diff --git a/src/config.in.hpp b/src/config.in.hpp index 44be021359..ccbfc81dd7 100644 --- a/src/config.in.hpp +++ b/src/config.in.hpp @@ -120,7 +120,8 @@ typedef unsigned long size_t; /* Provide a fallback if ssize_t is not defined. */ #cmakedefine HAVE_SIZEOF_SSIZE_T 1 #if !defined(HAVE_SIZEOF_SSIZE_T) -typedef long ssize_t; +#include +typedef std::make_signed::type ssize_t; #endif /* Defined to 1 if the underlying system uses little endian. */