I have a tool using gethostname() several times. Tool works fine, but in a
specific servers, tool doesn't work because gethostname() returns -1 (fails).

I developed another module with only the gethostname() API function to test
it and I got the same error.

What can I do?
How can I fix API function on Netware server??

Server Information:
Netware 6.5
SP 6

Thanks in advance !!