[PATCH] getport: fix missing stddef.h inclusion
Jaipaul Cheernam <[email protected]>
| Newsgroups | org.kernel.vger.linux-nfs |
|---|---|
| Message-ID | <[email protected]> |
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]> --- 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>