about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 7a785c450d..c3b2053512 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 1fca6b3222..a24298b3c3 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)  */