From: Philip Balister <balister@pdsrvr.salem.ge.com> Subject: xfishtank: What I did. Date: Wed, 28 Oct 1992 16:34:33 GMT
X-Mn-Key: X11
I saw some posting in comp.os.linux regarding xfishtank. I got it running
with very few changes. I did a set of diff's and editted out the makefile
stuff. patch may work, but it would be better to apply by hand ;-) All
you need to do is xmkmf and apply these patches and it should work.
Actual mileage may vary ;-)
Philip
balister@salem.salem.ge.com
=====================================================
diff -rcB xfishtank/xfish.c xfishtank.works/xfish.c
*** xfishtank/xfish.c Thu Mar 19 22:50:10 1992
--- xfishtank.works/xfish.c Fri Oct 2 21:54:29 1992
***************
*** 37,43 ****
/* constants are based on rand(3C) returning an integer between 0 and 32767 */
! #if defined(ultrix) || defined(sun)
#define RAND_I_1_16 134217728
#define RAND_F_1_8 268435455.875
#define RAND_I_1_4 536870911
--- 37,43 ----
/* constants are based on rand(3C) returning an integer between 0 and 32767 */
! #if defined(ultrix) || defined(sun) || defined (linux)
#define RAND_I_1_16 134217728
#define RAND_F_1_8 268435455.875
#define RAND_I_1_4 536870911
***************
*** 552,557 ****
--- 552,567 ----
void
init_signals()
{
+ #ifdef linux
+ struct sigaction olda, newa;
+
+ newa.sa_handler = toggle_secure;
+ sigemptyset(&newa.sa_mask);
+ newa.sa_flags=0;
+
+ sigaction(SIGUSR1, &newa, &olda);
+
+ #else
#ifdef MOTOROLA
sigset(SIGUSR1, toggle_secure);
#else
***************
*** 567,572 ****
--- 577,583 ----
sigvector(SIGUSR1, &vec, &vec);
#endif
#endif /* MOTOROLA */
+ #endif /* linux */
}