diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-03-22 22:12:34 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-03-22 22:12:34 +0000 |
commit | c4c7b9c1f82d31fbf62a5564c9a5b8f4374b9d1a (patch) | |
tree | 1eebb9c2588d400a53bc90d450ef57f0a65d19c7 /sys-apps/watchdog/files | |
parent | drop empty DEPEND line (diff) | |
download | gentoo-2-c4c7b9c1f82d31fbf62a5564c9a5b8f4374b9d1a.tar.gz gentoo-2-c4c7b9c1f82d31fbf62a5564c9a5b8f4374b9d1a.tar.bz2 gentoo-2-c4c7b9c1f82d31fbf62a5564c9a5b8f4374b9d1a.zip |
Version bump.
(Portage version: 2.2_rc26/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/watchdog/files')
-rw-r--r-- | sys-apps/watchdog/files/watchdog-5.6-headers.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/sys-apps/watchdog/files/watchdog-5.6-headers.patch b/sys-apps/watchdog/files/watchdog-5.6-headers.patch new file mode 100644 index 000000000000..846832c6d347 --- /dev/null +++ b/sys-apps/watchdog/files/watchdog-5.6-headers.patch @@ -0,0 +1,42 @@ +http://sourceforge.net/tracker/index.php?func=detail&aid=1791328&group_id=172030&atid=860196 + +pull in more headers for prototypes + +--- watchdog-5.6/src/fstab.c ++++ watchdog-5.6/src/fstab.c +@@ -4,6 +4,7 @@ + #include "config.h" + #endif + ++#define _GNU_SOURCE /* for strsignal() */ + #include <unistd.h> + #include <errno.h> + #include <stdio.h> +--- watchdog-5.6/src/wd_keepalive.c ++++ watchdog-5.6/src/wd_keepalive.c +@@ -24,7 +25,7 @@ + #include <stdlib.h> + #include <sys/mman.h> + #include <sys/wait.h> +-#define __USE_GNU ++#include <libgen.h> + #include <string.h> + #include <syslog.h> + +--- watchdog-5.6/src/watchdog.c ++++ watchdog-5.6/src/watchdog.c +@@ -26,12 +26,10 @@ + #include <sys/stat.h> + #include <sys/types.h> + #include <linux/watchdog.h> +-#define __USE_GNU + #include <string.h> + +-#if !defined(__GLIBC__) /* __GLIBC__ */ +-extern char *basename(const char *); +-#endif /* __GLIBC__ */ ++#include <sys/ioctl.h> ++#include <libgen.h> + + #include <unistd.h> + |