Gnulib includes a module for ssize_t, but it doesn't ensure that SSIZE_MAX is available. It seems that an ssize_t.h header file with the following contents would be sufficient:
#include <limits.h> #ifndef SSIZE_MAX # define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2)) #endif A few of the source files in lib/ already include something like this. -- "If a person keeps faithfully busy each hour of the working day, he can count on waking up some morning to find himself one of the competent ones of his generation." --William James