bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tests: Fix some missing includes


From: Colin Watson
Subject: [PATCH] tests: Fix some missing includes
Date: Sat, 2 Feb 2019 10:59:18 +0000
User-agent: NeoMutt/20170113 (1.7.2)

Without this, we get "error: 'CHAR_BIT' undeclared".

* tests/test-array_map.c: Include <limits.h>.
* tests/test-hash_map.c: Likewise.
* tests/test-linkedhash_map.c: Likewise.
---
 tests/test-array_map.c      | 1 +
 tests/test-hash_map.c       | 1 +
 tests/test-linkedhash_map.c | 1 +
 3 files changed, 3 insertions(+)

diff --git a/tests/test-array_map.c b/tests/test-array_map.c
index b26592969..cd5aceeac 100644
--- a/tests/test-array_map.c
+++ b/tests/test-array_map.c
@@ -19,6 +19,7 @@
 
 #include "gl_array_map.h"
 
+#include <limits.h>
 #include <stdlib.h>
 #include <string.h>
 
diff --git a/tests/test-hash_map.c b/tests/test-hash_map.c
index 9fb79fc79..a5007c008 100644
--- a/tests/test-hash_map.c
+++ b/tests/test-hash_map.c
@@ -19,6 +19,7 @@
 
 #include "gl_hash_map.h"
 
+#include <limits.h>
 #include <stdlib.h>
 #include <string.h>
 
diff --git a/tests/test-linkedhash_map.c b/tests/test-linkedhash_map.c
index f9fc84b76..2bebfd4ff 100644
--- a/tests/test-linkedhash_map.c
+++ b/tests/test-linkedhash_map.c
@@ -19,6 +19,7 @@
 
 #include "gl_linkedhash_map.h"
 
+#include <limits.h>
 #include <stdlib.h>
 #include <string.h>
 
-- 
2.17.1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]