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 <mcpratt@pm.me>
Date: Wed, 18 May 2022 23:13:23 -0400
Subject: [PATCH] strings.h: add missing features.h include directive
To: musl@lists.openwall.com

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 <mcpratt@pm.me>
---
 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" {
 #endif

+#include <features.h>

 #define __NEED_size_t
 #define __NEED_locale_t
--
2.30.2



^ 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 inbox:

	https://git.vuxu.org/mirror/musl/

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).