pull in more headers for prototypes --- watchdog-5.2.6/src/fstab.c +++ watchdog-5.2.6/src/fstab.c @@ -2,6 +2,7 @@ #include "config.h" #endif +#define _GNU_SOURCE /* for strsignal() */ #include #include #include --- watchdog-5.2.6/src/nfsmount.c +++ watchdog-5.2.6/src/nfsmount.c @@ -41,6 +41,7 @@ #include #include #include +#include #include #include #include --- watchdog-5.2.6/src/pidfile.c +++ watchdog-5.2.6/src/pidfile.c @@ -4,6 +4,10 @@ #include #include +#include +#include +#include +#include #include "extern.h" #include "watch_err.h" --- watchdog-5.2.6/src/shutdown.c +++ watchdog-5.2.6/src/shutdown.c @@ -2,6 +2,8 @@ #include "config.h" #endif +#define _GNU_SOURCE /* for getsid() */ + #include #include #include @@ -12,6 +14,7 @@ #include #include #include +#include #include #include #include --- watchdog-5.2.6/src/test_binary.c +++ watchdog-5.2.6/src/test_binary.c @@ -8,6 +8,7 @@ #include #include #include +#include #include "extern.h" #include "watch_err.h" --- watchdog-5.2.6/src/wd_keepalive.c +++ watchdog-5.2.6/src/wd_keepalive.c @@ -15,6 +15,7 @@ * ***********************************************************/ +#define _GNU_SOURCE #include #include #include @@ -23,7 +24,7 @@ #include #include #include -#define __USE_GNU +#include #include #include --- watchdog-5.2.6/src/watchdog.c +++ watchdog-5.2.6/src/watchdog.c @@ -11,6 +11,8 @@ #include "extern.h" +#include +#include #include #include #include @@ -21,7 +23,6 @@ #include #include #include -#define __USE_GNU #include #if !defined(__GLIBC__) /* __GLIBC__ */