On 09/25/11 12:07 AM, Jeremy Huddleston wrote:

On Sep 24, 2011, at 21:22, Alan Coopersmith wrote:

It's gethostname, no "by", to get the name of the current host.

You're using gethostbyname here:

+    struct hostent *hp = gethostbyname(MyHostName);

Ah, that's down in the #else below the #ifdef USE_XTRANS code.
The non-xtrans code is IPv4 only.

The default is xtrans if it's installed, and that's what I build
with, and my binaries have the right calls in:

% nm -p xscope | grep get
00000000000004286328 U fgets
00000000000004286168 U getaddrinfo
00000000000004285912 U getenv
00000000000004285704 U geteuid
00000000000004285304 U gethostname
00000000000004285976 U getpeername
00000000000004285592 U getpid
00000000000004286024 U getservbyname
00000000000004286120 U getsockname
00000000000004286424 U gettimeofday

--
        -Alan Coopersmith-        [email protected]
         Oracle Solaris Platform Engineering: X Window System

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to