[Python-bugs-list] Re: popen2 and socket. (PR#53)

guido@CNRI.Reston.VA.US guido@CNRI.Reston.VA.US
Mon, 16 Aug 1999 14:23:00 -0400 (EDT)


> I finally found it, in socketmodule.c O replaced this: 
> 
> #elif defined(linux)
> #define HAVE_GETHOSTBYNAME_R_6_ARG
> #else
> 
> with this: 
> 
> #elif defined(linux)
> #define HAVE_GETHOSTBYNAME_R_5_ARG
> #else
> 
> And everything worked. Strange that nobody else has noticed this,
> maybe it's a libc versus glibc thing or something.
> 
> Anyway, thanks for your time. 

Ah, thanks!  As you say, this is probably dependent on your libc
version.  A better solution should be found, really...  I'll mark the
bug report as "open".

--Guido van Rossum (home page: http://www.python.org/~guido/)