On Jul  6, 2000, Stephane Bortzmeyer <[EMAIL PROTECTED]> wrote:

> I need to be able to:

> if ((sp = getservbyname (HTTP_PORT, "tcp")) == NULL)

Instead of trying to detect something that requires running a test,
which won't work when cross compiling, why don't you just test one
service name after the other, until you find one that works and, if
none do, fallback to the default port 80?
-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Reply via email to