Glenn Fowler wrote:
> 
> here is the first part of the sh/io.c _lib_getaddrinfo code
> 
> #if !_lib_getaddrinfo
> #undef  addrinfo
> #undef  getaddrinfo
> #undef  freeaddrinfo
> #define addrinfo                local_addrinfo
> #define getaddrinfo             local_getaddrinfo
> #define freeaddrinfo            local_freeaddrinfo

Actually, I think that entire block gets skipped. It's inside this
conditional that starts further up, at line 71:

  #if defined(_lib_socket) && defined(_sys_socket) && defined(_hdr_netinet_in)

>From the build output:

  iffe: test: is socket a library function ... no
  iffe: test: is sys/socket.h a header ... yes
  iffe: test: is netinet/in.h a header ... yes

IIUC, this means that _lib_socket will not be defined, and that entire
block, all the way to line 300, will get skipped.

> can you snarf the cc -E output for sh/io.c to see
> how the local_* variants were circumvented?

Sure... how? I've tried very hard to get the build process to leave
its intermediate files behind, so I could see exactly which symbols
were defined by the results of the various tests, but it seems to go
to an awful lot of trouble to clean up after itself...

--
Ron Isaacson
Morgan Stanley
[EMAIL PROTECTED] / (212) 276-1144

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to