mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Michael Pratt <mcpratt@protonmail.com>
To: "musl@lists.openwall.com" <musl@lists.openwall.com>
Subject: [musl] [PATCH] strings.h: add missing features.h include directive
Date: Thu, 19 May 2022 06:28:39 +0000	[thread overview]
Message-ID: <3acb4Qdg1Sj7Ro9DeRutBrZtovJCDXilSiB5LUjj67AoOn4jfB5FLplusQY_ycsEx0yj544pFMUo-tT6A9TLDjTm5PHMFEogVXuvVBW6Q3o=@protonmail.com> (raw)

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



                 reply	other threads:[~2022-05-19 10:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='3acb4Qdg1Sj7Ro9DeRutBrZtovJCDXilSiB5LUjj67AoOn4jfB5FLplusQY_ycsEx0yj544pFMUo-tT6A9TLDjTm5PHMFEogVXuvVBW6Q3o=@protonmail.com' \
    --to=mcpratt@protonmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public 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).