pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkgtools/plist-utils and red-black tree implementations

On 01.01.2020 18:26, Frédéric Fauberteau wrote:
> Hi,
> I tried to build pkgtools/plist-utils on FreeBSD and I got:
> plist_tree.c:37:10: fatal error: 'sys/rbtree.h' file not found
> #include <sys/rbtree.h>
>          ^~~~~~~~~~~~~~
> 1 error generated.
> *** Error code 1
> I found that OpenBSD (and FreeBSD too) provides sys/tree.h that contains
> a red-black tree implementation. Actually, NetBSD also provides
> sys/tree.h and then two red-black tree implementations.
> Is there relevent differences between these implementations
> (sys/rbtree.h vs sys/tree.h)?
> Could plist-utils use sys/tree.h in order to work on FreeBSD/OpenBSD?

I think it would be easier to add compat rbtree for those systems and
ideally use libnbcompat.

If you would like to rewrite it to sys/tree.h, feel free to do so.

Attachment: signature.asc
Description: OpenPGP digital signature

Home | Main Index | Thread Index | Old Index