]> Savannah Git Hosting - gnulib.git/commitdiff
ssfmalloc: Fix includes.
authorBruno Haible <bruno@clisp.org>
Mon, 4 Jan 2021 06:58:03 +0000 (07:58 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 4 Jan 2021 06:58:03 +0000 (07:58 +0100)
* lib/ssfmalloc.h: Include <strings.h>, for ffs().
* tests/test-ssfmalloc.c: Include <string.h>, for memset().

ChangeLog
lib/ssfmalloc.h
tests/test-ssfmalloc.c

index c2e48a7b4f25f2274f1507ffbfa7ab947365b0ef..6f42f1ccc5ad60b344da999429e7a81a0fc147d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-01-04  Bruno Haible  <bruno@clisp.org>
+
+       ssfmalloc: Fix includes.
+       * lib/ssfmalloc.h: Include <strings.h>, for ffs().
+       * tests/test-ssfmalloc.c: Include <string.h>, for memset().
+
 2021-01-03  Bruno Haible  <bruno@clisp.org>
 
        quotearg tests: Avoid test failures on Solaris 11.3.
index d5e0a1eb9f0d43b20c108420040a5372b7319fba..8fdb2b14a671b461b1f3ba7475328c9d636fd0c1 100644 (file)
@@ -121,7 +121,8 @@ static void free_block (uintptr_t block);
  */
 
 #include <stdlib.h>
-#include <string.h>
+#include <string.h>     /* ffsll */
+#include <strings.h>    /* ffs */
 #include "flexmember.h"
 #include "glthread/lock.h"
 #include "thread-optim.h"
index 640071de5ef55330eb75c71ffc3453e3e513fa57..6571cedd966224e72ef32cd764c420451c854f0d 100644 (file)
@@ -142,6 +142,7 @@ free_pages (uintptr_t pages, size_t size)
 /* ================================= Tests ================================= */
 
 #include <limits.h>
+#include <string.h>
 
 #include "macros.h"