From cbe7edea80557920a745d951a6f3a70416954710 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Thu, 16 Apr 2009 13:44:38 +0000 Subject: - Fix build with GCC 4.2 - Pass maintainership to submitter PR: 133661 Submitted by: Thomas Sandford Approved by: portmgr (erwin) --- sysutils/upsdaemon/files/patch-upsdaemon.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 sysutils/upsdaemon/files/patch-upsdaemon.c (limited to 'sysutils/upsdaemon/files/patch-upsdaemon.c') diff --git a/sysutils/upsdaemon/files/patch-upsdaemon.c b/sysutils/upsdaemon/files/patch-upsdaemon.c new file mode 100644 index 000000000000..005167245b0f --- /dev/null +++ b/sysutils/upsdaemon/files/patch-upsdaemon.c @@ -0,0 +1,26 @@ +--- src/upsdaemon.c.orig 2006-06-20 01:50:23.000000000 +0100 ++++ src/upsdaemon.c 2009-04-12 15:48:34.000000000 +0100 +@@ -32,6 +32,7 @@ + #include /* Error number definitions */ + #include /* POSIX terminal control definitions */ + #include /* Definitions for system error logging */ ++#include /* exit() definition */ + + #define PROG " UpsDaemon" + #define VERSION " 1.0" +@@ -50,6 +51,7 @@ + #define SH_RECOVERY "/usr/local/libexec/upsdaemon/upsdaemon-alerts -recovery" + + int makepid(char *s); ++static void runcommand(); + + int main(int argc, char **argv) + { +@@ -71,7 +73,6 @@ + char *failed = SH_FAILED; + char *recovery = SH_RECOVERY; + +- static void runcommand(); + + if(argc > 2) { + errx(1,"Usage: upsdaemon : %s\n", strerror(errno)); -- cgit v1.2.3