Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/watchdog/files: watchdog-5.6-headers.patch
Date: Sun, 22 Mar 2009 22:12:36
Message-Id: E1LlVuE-0005oz-BH@stork.gentoo.org
vapier      09/03/22 22:12:34

  Added:                watchdog-5.6-headers.patch
  Log:
  Version bump.
  (Portage version: 2.2_rc26/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  sys-apps/watchdog/files/watchdog-5.6-headers.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/watchdog/files/watchdog-5.6-headers.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/watchdog/files/watchdog-5.6-headers.patch?rev=1.1&content-type=text/plain

Index: watchdog-5.6-headers.patch
===================================================================
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>