Include sys/types.h before using ssize_t