Andrew Dougherty <[EMAIL PROTECTED]> wrote: > On Fri, 27 Feb 2004, Leopold Toetsch wrote:
[ inet_aton vs inet_pton ] >> We need a config test here. > Something like this ought to do the trick for now. Longer term, we need > to build up some infrastructure for testing for functions on our own. We > also need to centralize things more to avoid some of the duplication of > code and information we're ending up with here. Yes. I've for now expanded config_h.pl a bit: $ perl Configure.pl --define=inet_aton,xyzzy leads to this output in has_header.h: /* defines from commandline */ #define PARROT_DEF_INET_ATON 1 #define PARROT_DEF_XYZZY 1 io/io_unix.c is adapted accordingly. This is of course also a hack but could be useful to define some features. So for HPUX et al please run: $ perl Configure.pl --define=inet_aton leo