summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2016-12-23 10:13:07 +0100
committerPali Rohár <pali.rohar@gmail.com>2016-12-23 10:13:07 +0100
commitb7c28b2c1bfab4783d6da431bef8288e32fdb136 (patch)
tree9b87eca69f6db08953d11ff9c44c503fb2f9daf5
parent0a1ac2521966221c38f654ca59128c7be70fb708 (diff)
download0xFFFF-b7c28b2c1bfab4783d6da431bef8288e32fdb136.tar.bz2
cal: SSIZE_MAX is not required to be defined
-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__