pem-dev
[Top] [All Lists]

Re: gethostname on System 5 machines

1994-10-13 12:17:00

As you all know on some System 5 machines like Soalris 2.*, there is no
such a library function. A easy fix could be

An easier method would be to link in the nsl library in by including on the
link line:

  -lnsl

no source modifications needed that way.  Out of habit, I usually just use
this with the socket library:

  -lsocket -lnsl

since all programs making socket calls (like X11 programs) need both.


-philip


____________________________________________________________ Philip Kizer ___
Texas A&M CIS Operating Systems Group, Unix ( 409.862.4120 ) 
pckizer(_at_)tamu(_dot_)edu

"Relying on the government to protect your privacy is like asking a peeping
tom to install your window blinds." -John Perry Barlow, EFF co-founder

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