aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-12-16 17:56:44 +0800
committermiwi <miwi@FreeBSD.org>2006-12-16 17:56:44 +0800
commitd164fc48b936f40b1acf013fa09233aa531d0605 (patch)
tree7b8690e381cf7c185beaa87ed9a285ea0678aeb5
parent896e5bca1a6ceca0783bf8c8d423f5e75aba0cdd (diff)
downloadfreebsd-ports-gnome-d164fc48b936f40b1acf013fa09233aa531d0605.tar.gz
freebsd-ports-gnome-d164fc48b936f40b1acf013fa09233aa531d0605.tar.zst
freebsd-ports-gnome-d164fc48b936f40b1acf013fa09233aa531d0605.zip
- Fix build with gcc 4.X
PR: ports/106739 Submitted by: trasz
-rw-r--r--sysutils/bkpupsd/files/patch-ab15
1 files changed, 12 insertions, 3 deletions
diff --git a/sysutils/bkpupsd/files/patch-ab b/sysutils/bkpupsd/files/patch-ab
index 3fd2e48e1d68..2886a2d2012e 100644
--- a/sysutils/bkpupsd/files/patch-ab
+++ b/sysutils/bkpupsd/files/patch-ab
@@ -1,5 +1,5 @@
---- src/bkpupsd.c.orig Sun Aug 3 13:11:23 1997
-+++ src/bkpupsd.c Thu Feb 26 17:17:09 2004
+--- src/bkpupsd.c.orig Sun Aug 3 20:11:23 1997
++++ src/bkpupsd.c Fri Dec 15 00:53:52 2006
@@ -27,14 +27,17 @@
*/
@@ -19,11 +19,12 @@
#define POWER_TIMEOUT 5*60
#define DEFAULT_PORT "/dev/cuaa1"
-@@ -44,16 +47,16 @@
+@@ -44,16 +47,17 @@
#define SH_RESTORED "/usr/local/libexec/bkpupsd/bkpups.restored"
#define SH_BATTLOW "/usr/local/libexec/bkpupsd/bkpups.battlow"
+int makepid(char *s);
++void execomand();
+
int main(argc, argv)
int argc;
@@ -38,6 +39,14 @@
int pfail = 0;
int pfcount = 0;
int prcount = 0;
+@@ -63,7 +67,6 @@
+ char *sh_restored = SH_RESTORED;
+ char *sh_battlow = SH_BATTLOW;
+ char *ups_port = DEFAULT_PORT;
+- static void execomand();
+
+ /* open ups port */
+ if(argc > 2) {
@@ -179,7 +182,7 @@
pid = getpid();
if((fp = fopen(s, "w")) == NULL)