aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-08-23 05:33:09 +0800
committerkrion <krion@FreeBSD.org>2004-08-23 05:33:09 +0800
commit1e1b6d54136731abf5e3b9526487f8d1a04e0a76 (patch)
tree649a2c899a680eb971e6815fb6be24243721a46d /sysutils
parent1e4d943cc9530372932c382d35609816dd73a423 (diff)
downloadfreebsd-ports-gnome-1e1b6d54136731abf5e3b9526487f8d1a04e0a76.tar.gz
freebsd-ports-gnome-1e1b6d54136731abf5e3b9526487f8d1a04e0a76.tar.zst
freebsd-ports-gnome-1e1b6d54136731abf5e3b9526487f8d1a04e0a76.zip
Fix build with gcc-3.4
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/libretto-config/files/patch-ab20
1 files changed, 16 insertions, 4 deletions
diff --git a/sysutils/libretto-config/files/patch-ab b/sysutils/libretto-config/files/patch-ab
index 864abd91fb7f..69d218e0b4ac 100644
--- a/sysutils/libretto-config/files/patch-ab
+++ b/sysutils/libretto-config/files/patch-ab
@@ -1,5 +1,8 @@
---- libapm.c.orig Thu Jun 18 17:28:23 1998
-+++ libapm.c Wed Oct 15 06:51:53 2003
+
+$FreeBSD$
+
+--- libapm.c.orig Fri Jun 19 02:28:23 1998
++++ libapm.c Sun Aug 22 23:31:55 2004
@@ -8,12 +8,19 @@
/* */
/***********************************************************/
@@ -49,6 +52,15 @@
switch (c) {
case 'h':
usage();
+@@ -189,7 +202,7 @@
+ case '?':
+ usage();
+ break;
+- default:
++ default: break;
+ }
+ }
+ #ifdef DEBUG
@@ -215,29 +228,60 @@
void usage(void)
{
@@ -95,7 +107,7 @@
+ [-S {disable,enable} : PanelSwitch]\n\
+ [-A {disable,<time>} : AlarmOn]\n\
+ [-L {0,1,2,3} : LcdPower]\n\
- \n");
++ \n");
+# endif /* HAVE_GETOPT_LONG */
+
+#else /* not CMOS_ACCESS */
@@ -112,7 +124,7 @@
+ [-L --LcdPower {0,1,2,3}]\n\
+ [-V --Volume {0,1,2,3}]\n\
+ [-O --Off {suspend|hibernation} Use Only >= Libretto100]\n\
-+ \n");
+ \n");
+# else /* not HAVE_GETOPT_LONG */
+ printf("\
+usage: libretto-config [-v : Version]\n\