summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cal.c b/src/cal.c
index 265f929..8fa7e9f 100644
--- a/src/cal.c
+++ b/src/cal.c
@@ -98,8 +98,10 @@ int cal_init_file(const char * file, struct cal ** cal_out) {
goto err;
blksize = lsize;
#endif
+#ifdef SSIZE_MAX
if ( blksize > SSIZE_MAX )
goto err;
+#endif
size = blksize;
} else {
#ifdef __linux__