pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/xaniroc Fix build problem under NetBSD 3.0_BETA ca...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8259001b60b4
branches:  trunk
changeset: 492500:8259001b60b4
user:      tron <tron%pkgsrc.org@localhost>
date:      Thu Apr 14 07:28:40 2005 +0000

description:
Fix build problem under NetBSD 3.0_BETA caused by broken signal
handler declaration.

diffstat:

 x11/xaniroc/distinfo         |   3 +-
 x11/xaniroc/patches/patch-aa |  50 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+), 1 deletions(-)

diffs (65 lines):

diff -r 05c145a6a127 -r 8259001b60b4 x11/xaniroc/distinfo
--- a/x11/xaniroc/distinfo      Thu Apr 14 05:46:45 2005 +0000
+++ b/x11/xaniroc/distinfo      Thu Apr 14 07:28:40 2005 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/23 17:36:21 wiz Exp $
+$NetBSD: distinfo,v 1.4 2005/04/14 07:28:40 tron Exp $
 
 SHA1 (xaniroc.src.tar.Z) = d1cc542f17ae852d6ff0e936fcf5d2537d107689
 RMD160 (xaniroc.src.tar.Z) = d7fd3eddf4192857e2e669e56b8d31e8a2eed019
 Size (xaniroc.src.tar.Z) = 16747 bytes
+SHA1 (patch-aa) = 26e849c5a0650be740009dfeade422cff80e9708
diff -r 05c145a6a127 -r 8259001b60b4 x11/xaniroc/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xaniroc/patches/patch-aa      Thu Apr 14 07:28:40 2005 +0000
@@ -0,0 +1,50 @@
+$NetBSD: patch-aa,v 1.1 2005/04/14 07:28:40 tron Exp $
+
+--- xaniroc.c.orig     1994-01-07 10:51:13.000000000 +0000
++++ xaniroc.c  2005-04-14 08:18:12.000000000 +0100
+@@ -62,22 +62,19 @@
+  ***************************************************************************************************
+  */
+ 
+-void main(int argc, char *argv[]);
++int main(int argc, char *argv[]);
+ void usage(void);
+ void frame_wait(void);
+ int  pointer_in_rootwindow(void);
+-#ifdef  SVR4
+ SIGVAL cleanup_and_exit(int sig);
+-#else
+-SIGVAL cleanup_and_exit(int sig, int code, struct sigcontext *scp, char *addr);
+-#endif        /* SVR4 */
+ 
+ /***************************************************************************************************
+  *    the main function of XAniroc
+  ***************************************************************************************************
+  */
+ 
+-void main(int argc, char *argv[])
++int
++main(int argc, char *argv[])
+ {
+ 
+ /***************************************************************************************************
+@@ -311,6 +308,7 @@
+                       if(i >= 24) i = 0;
+               }
+       }
++      return 0;
+ } /*end of main */
+ 
+ /***************************************************************************************************
+@@ -387,11 +385,7 @@
+  *                                    signal handler that cleans up the cursor
+  ***************************************************************************************************
+  */
+-#ifdef  SVR4
+ SIGVAL cleanup_and_exit(int sig)
+-#else
+-SIGVAL cleanup_and_exit(int sig, int code,struct sigcontext *scp, char *addr)
+-#endif        /* SVR4 */
+ {
+         XUndefineCursor(display, XDefaultRootWindow(display));
+         XCloseDisplay(display);



Home | Main Index | Thread Index | Old Index