summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/system.h5
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