Fully fix build on Cygwin.
authorMichael Poole <mdpoole@troilus.org>
Wed, 30 Apr 2008 02:13:08 +0000 (22:13 -0400)
committerMichael Poole <mdpoole@troilus.org>
Wed, 30 Apr 2008 02:13:08 +0000 (22:13 -0400)
commiteaeb9cdc97f84be6ac910c555686742b7942cc53
treec78a3832dea8fac8a9887d16f90614d2988cb38e
parent05d17349f084f7e26a36a974af42439edda837d3
Fully fix build on Cygwin.

src/common.h (localtime_r): Do not declare in this file.
src/compat.h (localtime_r): Fix conditional definition of localtime_r().
  (EAI_*): Define getaddrinfo()/getnameinfo() error codes if needed.
src/compat.c (getaddrinfo): Return errors by macro.
  (getnameinfo): Implement a simple version of this function.
src/common.h
src/compat.c
src/compat.h