diff options
Diffstat (limited to '')
-rw-r--r-- | src/system.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h index 1242e24..833e162 100644 --- a/src/system.h +++ b/src/system.h @@ -26,9 +26,14 @@ * SUCH DAMAGE. */ +#include <limits.h> #include <signal.h> #include <sys/types.h> +#ifndef SSIZE_MAX +#define SSIZE_MAX ((ssize_t)((size_t)-1 >> 1)) +#endif + static inline void sigclearmask(void) { #ifdef HAVE_SIGSETMASK |