[PATCH] getport: fix missing stddef.h inclusion

Jaipaul Cheernam <[email protected]>
Newsgroups gmane.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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.