9 #include <rpc/pmap_prot.h>
10 #include <rpc/pmap_clnt.h>
18 +#include <sys/types.h>
22 #include "watch_err.h"
31 +#define _GNU_SOURCE /* for getsid() */
44 #include <sys/param.h>
54 #include "watch_err.h"
70 #include <arpa/inet.h>
72 +#include <sys/stat.h>
77 #if !defined(__GLIBC__) /* __GLIBC__ */
78 --- src/wd_keepalive.c
79 +++ src/wd_keepalive.c