I'm not sure if you care about supporting glibc-2.0.7, but I found
only a few problems compiling lsh against it, both related to the
getaddrinfo function in src/io.c.

The first is the use of AI_NUMERICHOST, which is not defined under
glibc-2.0.7.  I did:

#ifdef AI_NUMERICHOST
    if (!lookup)
      hints.ai_flags |= AI_NUMERICHOST;
#endif

Also, gai_strerror is not defined for glibc-2.0.7... I hacked around
it just by doing

#define gai_strerror(n) "Unknown error"

You probably would want something cleaner, such as a configure test,
which I didn't bother with.

Thanks for the program,

-- 
 Gordon Matzigkeit <[EMAIL PROTECTED]>  //\ I'm a FIG (http://fig.org/)
Committed to freedom and diversity \// I use GNU (http://www.gnu.org/)

Reply via email to