pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: How to patch for: #include <bits/wordsize.h>
On Sat, Sep 13, 2025 at 01:20:32PM +0530, Mayuresh wrote:
> On NetBSD 10.1 amd64, I am trying to build a project that includes above
> header.
>
> Precise usage of this header is in the following form in the code:
>
> #if __WORD_SIZE==32
>
> The header is present on Linux systems but not on NetBSD. On NetBSD, how
> should this be patched? Even better if the patch is generic and works on
> Linux as well.
You can probably get by with:
#if !defined(_LP64)
instead. Should work everywhere we care about with no need to include
any header file at all.
For a better answer we'd need to see what's in the #if and any #else.
Home |
Main Index |
Thread Index |
Old Index