Fun Alpha patch.

---------- Forwarded message ----------
Date: Wed, 11 Mar 1998 17:57:57 -0500 (EST)
From: Christopher C Chimelis <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Bug#19515: Patches for deity compilation on Alphas
Resent-Date: Wed, 11 Mar 1998 23:03:02 GMT
Resent-From: Christopher C Chimelis <[EMAIL PROTECTED]>
Resent-To: [email protected]
Resent-cc: [EMAIL PROTECTED] (Scott K. Ellis)


Package: deity
Version: 19980310-1

Below are patches to allow deity to be compiled on the Alphas.  The only
change I really made was eliminating the sa_restorer member of the
sigaction struct since it's obsolete anyway and is not supported under
glibc on the Alpha.

The only other problem that I ran into was that, even with --disable-nls,
it still didn't substitute "yes" or "no" in the Makefile.in's in /po or
/intl, so I patched those by hand for now....  This could be an Alphaism
with the autoconf, but I'm not sure yet....

Chris


diff -ruN deity-19980310/deity/selectloop.cc deity.work/deity/selectloop.cc
--- deity-19980310/deity/selectloop.cc  Sat Oct  4 00:17:47 1997
+++ deity.work/deity/selectloop.cc      Wed Mar 11 18:15:41 1998
@@ -65,7 +65,9 @@
    Act.sa_handler = DeathHandler;
    sigemptyset(&Act.sa_mask);
    Act.sa_flags = SA_RESETHAND;
+#if !defined(__alpha)
    Act.sa_restorer = 0;
+#endif /* __alpha */
    sigaction(SIGINT,&Act,0);
    sigaction(SIGSEGV,&Act,0);   
 }
@@ -150,7 +152,9 @@
       Act.sa_handler = SignalHandler;
       sigemptyset(&Act.sa_mask);
       Act.sa_flags = SA_RESTART;
+#if !defined(__alpha)
       Act.sa_restorer = 0;
+#endif /* __alpha */
       for (int I = 0; I != 10 && Signals[I].Signal != 0; I++)
         sigaction(Signals[I].Signal,&Act,0);
           
@@ -232,7 +236,9 @@
    Act.sa_handler = SignalHandler;
    sigemptyset(&Act.sa_mask);
    Act.sa_flags = 0;
+#if !defined(__alpha)
    Act.sa_restorer = 0;
+#endif /* __alpha */
    sigaction(Sig,&Act,0);
 }
                                                                        /*}}}*/



--
E-mail the word "unsubscribe" to [EMAIL PROTECTED]
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED]

Reply via email to