Make srvx compile on cygwin again.
authorMichael Poole <mdpoole@troilus.org>
Sun, 3 Sep 2006 15:24:48 +0000 (15:24 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sun, 3 Sep 2006 15:24:48 +0000 (15:24 +0000)
commit23287685f2317345df2ba19ef650c220d7846817
tree9c74ae9b51c11ea785fcdb04646e6e0509bacfcb
parent8cb76025c9e5bc7d7f545991299138c85ffc17f2
Make srvx compile on cygwin again.

configure.in (AC_CHECK_HEADERS): Look for <arpa/inet.h>.
  (AC_CHECK_FUNCS): Look for inet_aton().

src/compat.c: Try to include <arpa/inet.h> so we get inet_addr().
  (getaddrinfo): If inet_aton() is not provided, use inet_addr() instead.

src/compat.h (AI_NUMERICHOST): Define this too.

src/tools.c (irc_pton): Use the pedantically correct type for ip4.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-30
ChangeLog
configure.in
src/compat.c
src/compat.h
src/tools.c