linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Walleij <linus.walleij@linaro.org>
To: Joel Stanley <joel@jms.id.au>
Cc: linux-gpio@vger.kernel.org,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	stable <stable@vger.kernel.org>
Subject: Re: [PATCH] tools/gpio: Fix build error with musl libc
Date: Thu, 21 Dec 2017 13:51:39 +0100	[thread overview]
Message-ID: <CACRpkdYuR33EOS+OPDh+fCcdVsa5N3ajsALyaa5PH7z858euvA@mail.gmail.com> (raw)
In-Reply-To: <20171221004131.23691-1-joel@jms.id.au>

On Thu, Dec 21, 2017 at 1:41 AM, Joel Stanley <joel@jms.id.au> wrote:

> The GPIO tools build fails when using a buildroot toolchain that uses musl
> as it's C library:
>
> arm-broomstick-linux-musleabi-gcc -Wp,-MD,./.gpio-event-mon.o.d \
>  -Wp,-MT,gpio-event-mon.o -O2 -Wall -g -D_GNU_SOURCE \
>  -Iinclude -D"BUILD_STR(s)=#s" -c -o gpio-event-mon.o gpio-event-mon.c
> gpio-event-mon.c:30:6: error: unknown type name ‘u_int32_t’; did you mean ‘uint32_t’?
>       u_int32_t handleflags,
>       ^~~~~~~~~
>       uint32_t
>
> The glibc headers installed on my laptop include sys/types.h in
> unistd.h, but it appears that musl does not.
>
> Fixes: 97f69747d8b1 ("tools/gpio: add the gpio-event-mon tool")
> Cc: stable@vger.kernel.org
> Signed-off-by: Joel Stanley <joel@jms.id.au>

Patch applied.

Yours,
Linus Walleij

      reply	other threads:[~2017-12-21 12:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-21  0:41 [PATCH] tools/gpio: Fix build error with musl libc Joel Stanley
2017-12-21 12:51 ` Linus Walleij [this message]

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=CACRpkdYuR33EOS+OPDh+fCcdVsa5N3ajsALyaa5PH7z858euvA@mail.gmail.com \
    --to=linus.walleij@linaro.org \
    --cc=joel@jms.id.au \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /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.
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).