Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» MacOSX - forked.net   » Compile Problems   » nethack random() fixed

UBBFriend: Email this page to someone!    
Author Topic: nethack random() fixed
apex
Administrator
Member # 1

posted August 18, 2001 12:20 AM      Profile for apex   Email apex   Send New Private Message      Edit/Delete Post  Reply With Quote 
Robert Dogget submitted this information to me regarding nethack's random functions. This is the fix provided by Robert:
code:

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.


Thanks Robert


Posts: 307 | From: Alaska | Registered: Aug 2001  |  IP: Logged

All times are Pacific Time  

Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
Hop To:

Contact Us | macosx.forked.net

Powered by Infopop Corporation
Ultimate Bulletin BoardTM 6.1.0.2