Skip to content
Snippets Groups Projects
Commit b1dca0e4 authored by Javier Blazquez's avatar Javier Blazquez
Browse files

Fix definition of ssize_t in CMake for 64-bit builds

parent a4b8fb62
No related merge requests found
......@@ -108,8 +108,8 @@ include(CheckTypeSize)
check_type_size("ssize_t" SIZEOF_SSIZE_T)
if(SIZEOF_SSIZE_T STREQUAL "")
# ssize_t is a signed type in POSIX storing at least -1.
# Set it to "int" to match the behavior of AC_TYPE_SSIZE_T (autotools).
set(ssize_t int)
# Set it to a pointer-size int.
set(ssize_t ptrdiff_t)
endif()
# Checks for symbols.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment