[oe] [meta-oe] [PATCH] lmbench: fix/clean-up the build for lmbench

Adrian Bunk bunk at stusta.de
Wed Oct 16 10:45:57 UTC 2019


On Tue, Oct 15, 2019 at 02:13:41PM +0200, marek.bykowski at 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



More information about the Openembedded-devel mailing list