From: Steve Dickson Date: Mon, 22 Jan 2024 13:23:57 -0500 Subject: reexport.c: Some Distros need the following include to avoid the following error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Origin: https://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=a2c95e4f557a71b482bb62bad6d93ddde51e5dc6 Bug-Debian: https://bugs.debian.org/1073818 reexport.c: In function ‘connect_fsid_service’: reexport.c:41:28: error: implicit declaration of function ‘offsetof’ [-Werror=implicit-function-declaration] 41 | addr_len = offsetof(struct sockaddr_un, sun_path) + strlen(addr.sun_path); | ^~~~~~~~ reexport.c:19:1: note: ‘offsetof’ is defined in header ‘’; did you forget to ‘#include ’? 18 | #include "xlog.h" +++ |+#include 19 | reexport.c:41:37: error: expected expression before ‘struct’ 41 | addr_len = offsetof(struct sockaddr_un, sun_path) + strlen(addr.sun_path); | ^~~~~~ cc1: some warnings being treated as errors Signed-off-by: Steve Dickson --- support/reexport/reexport.c | 1 + 1 file changed, 1 insertion(+) --- a/support/reexport/reexport.c +++ b/support/reexport/reexport.c @@ -8,6 +8,7 @@ #include #include #include +#include #include "nfsd_path.h" #include "conffile.h"