nethack random() fixed

Find out how to get that @*&^$&@ thing to compile!

nethack random() fixed

Postby apex » Sat Aug 18, 2001 7:20 am

Robert Dogget submitted this information to me regarding nethack's random functions. This is the fix provided by Robert:
<BLOCKQUOTE><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><HR><pre>
1. download an unpack the archive


2. modify sys/unix/Makefile.src (or src/Makefile after running
sys/unix/setup.sh):
223c223,224
< WINTTYLIB = -ltermlib
---
> # WINTTYLIB = -ltermlib
> WINTTYLIB = -framework System


3. modify include/unixconf.h:
48a49
> #define DARWIN
50c51
< #define TERMINFO /* uses terminfo rather than termcap */
---
> /* #define TERMINFO */ /* uses terminfo rather than termcap */
300c301
< #if defined(BSD) || defined(ULTRIX) || defined(CYGWIN32) || defined(RANDOM)
---
> #if defined(BSD) || defined(ULTRIX) || defined(CYGWIN32) ||
>defined(RANDOM) || defined(DARWIN)


4. modify include/system.h:
80c80
< # if !defined(SUNOS4) || defined(RANDOM)
---
> # if !defined(SUNOS4) || defined(RANDOM) || defined(DARWIN)


5. modify src/hacklib.c:
446c446
< # if defined(BSD) || defined(ULTRIX) || defined(CYGWIN32) /* system
srandom() */
---
> # if defined(BSD) || defined(ULTRIX) || defined(CYGWIN32) ||
>defined(DARWIN) /* system srandom() */
448c448
< # if defined(SUNOS4)
---
> # if defined(SUNOS4) || defined(DARWIN)


6. That's all... make and install as usual.
</pre>[/quote]

Thanks Robert [img]images/icons/smile.gif"%20border="0[/img]
apex
 
Posts: 355
Joined: Sun Aug 05, 2001 7:00 pm

Return to Compile Problems

Who is online

Users browsing this forum: No registered users and 5 guests

cron