summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2017-03-14 17:31:06 -0400
committerLeon Scroggins <scroggo@google.com>2017-03-14 21:33:15 +0000
commit147ea0d6d716c9002aa329878f39767d96e1f0fb (patch)
tree49497aa711777044f468d3cdd30742626a686f69
parent34ed1449181d5377c0ba943f42fb964fc1afe011 (diff)
downloadgiflib-147ea0d6d716c9002aa329878f39767d96e1f0fb.tar.gz
Include <limits.h> for SIZE_MAX DO NOT MERGE
Bug:34697653 Test: compile Though typically defined in stdint.h, Android defines SIZE_MAX in limits.h. Change-Id: I0f6fb89d9eb55406073d6b25e599bb2745253865
-rw-r--r--openbsd-reallocarray.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsd-reallocarray.c b/openbsd-reallocarray.c
index aa70686..41a3326 100644
--- a/openbsd-reallocarray.c
+++ b/openbsd-reallocarray.c
@@ -19,6 +19,7 @@
#include <errno.h>
#include <stdint.h>
#include <stdlib.h>
+#include <limits.h>
/*
* This is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX