aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-04-07 13:48:00 +0200
committerFlorian Weimer <fweimer@redhat.com>2016-04-07 13:48:00 +0200
commit1d2a8245ff7bcc1d8be54f01e26c49297e446aba (patch)
tree81dc44ba962802352c18885e7d7bd7f771783c72
parentc04af6068b2c2c65c92b3360cbc4b51ad9843f21 (diff)
downloadglibc-1d2a8245ff7bcc1d8be54f01e26c49297e446aba.zip
glibc-1d2a8245ff7bcc1d8be54f01e26c49297e446aba.tar.gz
glibc-1d2a8245ff7bcc1d8be54f01e26c49297e446aba.tar.bz2
hsearch_r: Include <limits.h>
It is needed for UINT_MAX.
-rw-r--r--ChangeLog4
-rw-r--r--misc/hsearch_r.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7a785c4..c3b2053 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2016-04-07 Florian Weimer <fweimer@redhat.com>
+ * misc/hsearch_r.c: Include <limits.h>.
+
+2016-04-07 Florian Weimer <fweimer@redhat.com>
+
* malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
2016-04-06 H.J. Lu <hongjiu.lu@intel.com>
diff --git a/misc/hsearch_r.c b/misc/hsearch_r.c
index 1fca6b3..a24298b 100644
--- a/misc/hsearch_r.c
+++ b/misc/hsearch_r.c
@@ -21,6 +21,7 @@
#include <string.h>
#include <stdint.h>
#include <search.h>
+#include <limits.h>
/* [Aho,Sethi,Ullman] Compilers: Principles, Techniques and Tools, 1986
[Knuth] The Art of Computer Programming, part 3 (6.4) */