[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH v2] seedrng: fix getrandom() detection for non-glibc libc
From:       Raphaël Mélotte <raphael.melotte () mind ! be>
Date:       2023-04-26 12:39:50
Message-ID: 8432e8d8-f42c-f614-0797-f44e9f9cea23 () mind ! be
[Download RAW message or body]



On 4/26/23 14:30, Michael Tokarev wrote:
> What defining _GNU_SOURCE is supposed to do here?
> It's a very interesting place to #define it.
> It's like doing LFS this way:

Nothing, that's an oversight from my side..
Thanks for pointing it out!

> #include <stdio.h>
> #define _FILE_OFFSET_BITS 64
> // use 64bit off_t here
> 
> It just doesn't work. In both cases, those definitions are checked
> within the header files to enable/disable certain functionality.
> Such #define does absolutely nothing after #includes.
> If anything, you can use -D_GNU_SOURCE=1 on the command line.

This is actually what I did in v1, I was later suggested to move it into the \
bb_libtest.c file (see [1] - in this specific case I have no preference on the \
matter) and I was apparently not really awake when I sent the v2.

I'll send a v3 shortly.

[1]: http://lists.busybox.net/pipermail/busybox/2023-April/090287.html
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic