All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] package/iperf3: fix musl build
Date: Tue, 2 Feb 2016 16:54:26 +0100	[thread overview]
Message-ID: <56B0D132.5000203@mind.be> (raw)
In-Reply-To: <1454178476-3057-1-git-send-email-bernd.kuhls@t-online.de>

On 30-01-16 19:27, Bernd Kuhls wrote:
> Ported -D_GNU_SOURCE from https://dev.openwrt.org/changeset/45103
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>


 Regards,
 Arnout

> ---
>  .../iperf3/0002-Fix-build-using-musl-libc.patch    | 43 ++++++++++++++++++++++
>  package/iperf3/iperf3.mk                           |  2 +
>  2 files changed, 45 insertions(+)
>  create mode 100644 package/iperf3/0002-Fix-build-using-musl-libc.patch
> 
> diff --git a/package/iperf3/0002-Fix-build-using-musl-libc.patch b/package/iperf3/0002-Fix-build-using-musl-libc.patch
> new file mode 100644
> index 0000000..f220360
> --- /dev/null
> +++ b/package/iperf3/0002-Fix-build-using-musl-libc.patch
> @@ -0,0 +1,43 @@
> +From 1fe02385b60c9dcd8a04b8bd3ff5cff120ec35a6 Mon Sep 17 00:00:00 2001
> +From: Bernd Kuhls <bernd.kuhls@t-online.de>
> +Date: Sat, 30 Jan 2016 19:23:20 +0100
> +Subject: [PATCH 1/1] Fix build using musl libc
> +
> +Fixes https://github.com/esnet/iperf/issues/331
> +
> +Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> +---
> +Patch sent upstream: https://github.com/esnet/iperf/pull/344
> +
> + src/cjson.h | 2 ++
> + src/timer.h | 1 +
> + 2 files changed, 3 insertions(+)
> +
> +diff --git a/src/cjson.h b/src/cjson.h
> +index d4449e6..7af19a9 100644
> +--- a/src/cjson.h
> ++++ b/src/cjson.h
> +@@ -23,6 +23,8 @@
> + #ifndef cJSON__h
> + #define cJSON__h
> + 
> ++#include <stdint.h>
> ++
> + #ifdef __cplusplus
> + extern "C"
> + {
> +diff --git a/src/timer.h b/src/timer.h
> +index 0f9c5eb..9b22b7f 100644
> +--- a/src/timer.h
> ++++ b/src/timer.h
> +@@ -30,6 +30,7 @@
> + #ifndef __TIMER_H
> + #define __TIMER_H
> + 
> ++#include <stdint.h>
> + #include <sys/time.h>
> + 
> + /* TimerClientData is an opaque value that tags along with a timer.  The
> +-- 
> +2.7.0.rc3
> +
> diff --git a/package/iperf3/iperf3.mk b/package/iperf3/iperf3.mk
> index 885a599..74d6cce 100644
> --- a/package/iperf3/iperf3.mk
> +++ b/package/iperf3/iperf3.mk
> @@ -9,4 +9,6 @@ IPERF3_SITE = $(call github,esnet,iperf,$(IPERF3_VERSION))
>  IPERF3_LICENSE = BSD-3c, BSD-2c, MIT
>  IPERF3_LICENSE_FILES = LICENSE
>  
> +IPERF3_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
> +
>  $(eval $(autotools-package))
> 


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

  reply	other threads:[~2016-02-02 15:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-30 18:27 [Buildroot] [PATCH v2] package/iperf3: fix musl build Bernd Kuhls
2016-02-02 15:54 ` Arnout Vandecappelle [this message]
2016-02-07 11:24 ` Thomas Petazzoni

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=56B0D132.5000203@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.