|
From: | Paul Eggert |
Subject: | Re: build failure of glob module on NetBSD: request for member ‘dd_fd’... |
Date: | Tue, 26 Apr 2022 15:02:30 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 |
On 4/21/22 00:41, Benno Schulenberg wrote:
glob.c:1361:21: error: request for member ‘dd_fd’ in something not a structure or union
Thanks for reporting that. That's due to a bug in NetBSD 9.2's implementation of dirfd. It's not implemented as a function (which is a bug in and of itself; POSIX says it must work even if you #undef it), and its macro doesn't work with a void * argument (where a function would work).
A good way to fix this would be to modify the dirfd module to work around the NetBSD bugs. I took the easy way out, though, and simply documented the bugs and modified glob to not run afoul of the bugs, by installing the attached patch into Gnulib.
glob.diff
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |