Mail archive
alpine-user

Re: [alpine-user] missing header sys/queue.h

From: Riccardo Mottola <riccardo.mottola_at_libero.it>
Date: Fri, 8 Mar 2019 14:27:26 +0100

Hi Natanael & Chloe,

Chloe Kudryavtsev wrote:
> BLOCK_SIZE is canonically defined in linux/fs.h as (1 <<
> BLOCK_SIZE_BITS).
>
> Glibc coincidentally redefines it to a hardcoded 1024 in sys/mount.h,
> but this is a glibc-specific extension.
>
> Please make sure your project includes the correct header.
>
> Also, do note that searching for "musl BLOCK_SIZE" (at least from
> where I'm at) gives relevant results in the top two slots (I haven't
> checked much lower).

thanks for the pointers, I found actually this discussion upstream

https://bugzilla.mozilla.org/show_bug.cgi?id=1152176

which shows some discussion if fs.h or mount.h is the better option.

At the end, FF opted for the solution to conditionally hard-code 1024. I
will see if this fix solves the issue.

While ArcticFox is a fork and technically I can fix it differently, I
prefer, when possible to have similar soruces, since it facilitates
maintenance. I will test and let you know!


Happy hacking,
Riccardo



---
Unsubscribe:  alpine-user+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-user+help_at_lists.alpinelinux.org
---
Received on Fri Mar 08 2019 - 14:27:26 UTC