Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: marek.bykowski@gmail.com
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe] [PATCH] lmbench: fix/clean-up the build for lmbench
Date: Wed, 16 Oct 2019 13:45:57 +0300	[thread overview]
Message-ID: <20191016104557.GA7998@localhost> (raw)
In-Reply-To: <1571141621-20235-1-git-send-email-marek.bykowski@gmail.com>

On Tue, Oct 15, 2019 at 02:13:41PM +0200, marek.bykowski@gmail.com wrote:
>...
> +--- a/src/lib_sched.c
> ++++ b/src/lib_sched.c
> +@@ -22,6 +22,7 @@
> + #endif
> + 
> + #if defined(HAVE_SCHED_SETAFFINITY)
> ++#define __USE_GNU
> + #include <sched.h>
> + #endif
>...

1. The correct macro is _GNU_SOURCE.

2. It must be defined before including any headers, otherwise it might 
   have no effect or cause weird breakages.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



  reply	other threads:[~2019-10-16 10:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-15 12:13 [meta-oe] [PATCH] lmbench: fix/clean-up the build for lmbench marek.bykowski
2019-10-16 10:45 ` Adrian Bunk [this message]
2019-10-16 12:21   ` [meta-oe] [PATCHv2] lmbench: Fix/clean-up " Marek Bykowski
2019-10-17 12:53     ` Khem Raj
2019-10-17 14:10       ` marek.bykowski
2019-10-18 11:42       ` [meta-oe] [PATCHv3] " marek.bykowski
2019-10-18 19:49         ` Randy MacLeod
2019-10-21  9:30           ` marek.bykowski
2019-10-21 23:42             ` Randy MacLeod
2019-10-22  7:15               ` marek.bykowski
2019-10-22 10:03                 ` marek.bykowski
2019-11-08 13:24                   ` Marek
2019-11-08 17:13                     ` Khem Raj
2019-12-19 12:34                       ` Marek
2020-02-11 14:41                         ` Marek
2020-02-11 16:31                           ` Khem Raj

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=20191016104557.GA7998@localhost \
    --to=bunk@stusta.de \
    --cc=marek.bykowski@gmail.com \
    --cc=openembedded-devel@lists.openembedded.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