Browse Source

Juergen Sawinski:

fixed base/kiss to compile for gcc33


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2528 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Juergen "George" Sawinski 21 years ago
parent
commit
805619b0c2
1 changed files with 14 additions and 10 deletions
  1. +14
    -10
      package/base/kiss/eject_feature.patch

+ 14
- 10
package/base/kiss/eject_feature.patch

@ -1,11 +1,11 @@
An eject functionality is rather handy on software controlled CD-ROM
laptops (e.g. Apple ones) ...
- Rene Rebe <rene@rocklinux.org>
--- ./src/Makefile 1998-09-25 14:07:09.000000000 +0200
+++ ./src/Makefile 2003-12-24 21:47:07.000000000 +0100
--- kiss-0.21/src/Makefile 1998-09-25 14:07:09.000000000 +0200
+++ kiss-0.21-eject/src/Makefile 2004-03-06 15:11:57.000000000 +0100
@@ -66,7 +66,7 @@
addstringstack.o expandtilde.o splitcmd.o addstringtostack.o \
dokill.o dogrep.o dochown.o dosleep.o expandbackquotes.o dols.o \
@ -15,11 +15,15 @@ laptops (e.g. Apple ones) ...
# entry point for making
foo:
--- ./src/doeject.c 1970-01-01 01:00:00.000000000 +0100
+++ ./src/doeject.c 2003-12-24 22:03:09.000000000 +0100
@@ -0,0 +1,33 @@
--- kiss-0.21/src/doeject.c 1970-01-01 01:00:00.000000000 +0100
+++ kiss-0.21-eject/src/doeject.c 2004-03-06 17:08:46.000000000 +0100
@@ -0,0 +1,37 @@
+#include "kiss.h"
+
+#if __GNUC__ == 3 && __GNUC_MINOR__ > 2
+#define __attribute_const__ __attribute__ ((const))
+#endif
+
+#include <linux/cdrom.h>
+
+int doeject (Stringstack s)
@ -51,8 +55,8 @@ laptops (e.g. Apple ones) ...
+ }
+ return (0);
+}
--- ./src/kiss.c 1998-09-25 14:07:10.000000000 +0200
+++ ./src/kiss.c 2003-12-24 21:34:31.000000000 +0100
--- kiss-0.21/src/kiss.c 1998-09-25 14:07:10.000000000 +0200
+++ kiss-0.21-eject/src/kiss.c 2004-03-06 15:11:57.000000000 +0100
@@ -32,6 +32,7 @@
{ "chown", dochown, 0 },
{ "cp", docp, 0 },
@ -61,8 +65,8 @@ laptops (e.g. Apple ones) ...
{ "exec", doexec, 1 },
{ "exit", doquit, 1 },
{ "grep", dogrep, 0 },
--- ./srx/kiss.h 1998-09-25 14:07:10.000000000 +0200
+++ ./src/kiss.h 2003-12-24 21:33:24.000000000 +0100
--- kiss-0.21/src/kiss.h 1998-09-25 14:07:10.000000000 +0200
+++ kiss-0.21-eject/src/kiss.h 2004-03-06 15:11:57.000000000 +0100
@@ -194,6 +194,7 @@
extern int dochown (Stringstack s);
extern int docp (Stringstack s);

Loading…
Cancel
Save