Re: [PATCH] getport: fix missing stddef.h inclusion
Steve Dickson <[email protected]>
| Newsgroups | gmane.linux.nfs |
|---|---|
| Message-ID | <[email protected]> |
On 8/6/26 7:20 AM, Jaipaul Cheernam wrote: > getport.c uses offsetof() but does not include <stddef.h>. On glibc > this works because offsetof is pulled in transitively, but on musl it > is not available without the explicit include, causing: > > getport.c:459:41: error: implicit declaration of function 'offsetof' > > Signed-off-by: Jaipaul Cheernam <[email protected]> Committed... (tag: nfs-utils-2-9-3-rc1) steved.> --- > support/nfs/getport.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/support/nfs/getport.c b/support/nfs/getport.c > index 608e185..6bd2f71 100644 > --- a/support/nfs/getport.c > +++ b/support/nfs/getport.c > @@ -27,6 +27,7 @@ > #endif > > #include <sys/types.h> > +#include <stddef.h> > #include <sys/time.h> > #include <unistd.h> > #include <fcntl.h> >