[alt.sources] Xenix Sys V Patch For GNUgo

fischer@netmbx.UUCP (Axel Fischer) (04/01/89)

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@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 ! <=====