Xenix Sys V Patch For GNUgo

Axel Fischer fischer at netmbx.UUCP
Sat Apr 1 21:03:59 AEST 1989


This one is a very simple patch for GNUgo to run under Xenix System V.
Just replace the orginal seed.c with this one:

------------------------------------- cut here ---------------------------------

/*
                GNU GO - the game of Go (Wei-Chi)
                Version 1.1   last revised 3-1-89
           Copyright (C) Free Software Foundation, Inc.
                      written by Man L. Li
                      modified by Wayne Iba
                    documented by Bob Webber
*/

/*
	Xenix System V patch by Axel Fischer
	(...!uunet!pyramid!tmpmbx!netmbx!fischer)

	Just replace the orginal seed.c with this one and type make
*/

#include <stdio.h>
#include <time.h>

seed(i)
/* start seed of random number generator for Xenix System V */

int *i;
{

 struct tm *tm ;
 long *clock ;

 tzset() ;
 time(&clock) ; 
 tm = localtime(&clock) ;
 *i = tm->tm_sec ;

}  /* end seed */

-------------------------------------- cut here --------------------------------

-- 
Domain:        fischer at netmbx.UUCP
Europe:        ...!tmpmbx!netmbx!fischer
Rest of world: ...!uunet!pyramid!tmpmbx!netmbx!fischer
=====> Beam me up, Scotty - there is no intelligent life down here ! <=====



More information about the Alt.sources mailing list