mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [PATCH] strings.h: add missing features.h include directive
@ 2022-05-19  6:28 Michael Pratt
  0 siblings, 0 replies; only message in thread
From: Michael Pratt @ 2022-05-19  6:28 UTC (permalink / raw)
  To: musl

From: Michael Pratt <>
Date: Wed, 18 May 2022 23:13:23 -0400
Subject: [PATCH] strings.h: add missing features.h include directive

it seems that there should be an include directive
of features.h here

otherwise it wouldn't be possible to include the functions
ffs, ffsl, ffsll
by using the header strings.h alone

Signed-off-by: Michael Pratt <>
 include/strings.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/strings.h b/include/strings.h
index db0960b4..b7a5ea08 100644
--- a/include/strings.h
+++ b/include/strings.h
@@ -5,6 +5,7 @@
 extern "C" {

+#include <features.h>

 #define __NEED_size_t
 #define __NEED_locale_t

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-19 10:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19  6:28 [musl] [PATCH] strings.h: add missing features.h include directive Michael Pratt

Code repositories for project(s) associated with this public inbox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).