pem-dev
[Top] [All Lists]

gethostname on System 5 machines

1994-10-13 09:26:00
When I was compiling the new PEM 7.0 code on my Sparc 5 runing Solaris,
I found that in the ROOT/lib/data/initprng.c there is a gethostname call.
As you all know on some System 5 machines like Soalris 2.*, there is no
such a library function. A easy fix could be

#ifdef SOLARIS
     sysinfo(SI_HOSTNAME, sighost, sizeof(sighost) );
#else
     gethostname (sighost, sizeof(sighost));

Maybe the next version will take care of this.

--Nick Zhang

<Prev in Thread] Current Thread [Next in Thread>