]> granicus.if.org Git - pgbouncer/commit
Build fixes for Solaris
authorMarko Kreen <markokr@gmail.com>
Wed, 25 Jun 2008 14:47:54 +0000 (14:47 +0000)
committerMarko Kreen <markokr@gmail.com>
Wed, 25 Jun 2008 14:47:54 +0000 (14:47 +0000)
commit968b62beade052100504d3b7859d5f20a29d3982
treee78cb47b67f60e67249628cc16a89ace1e362470
parentf3d01fd4edd654963cef0575733cf54ffcf38eb6
Build fixes for Solaris

* Use __func__ and define it to __FUNCTION__ if not defined.
  it's the C99 standard.

* Tests for certain linking libraries (libnsl, libsocket, libresolv) (configure.ac)

* Defines INADDR_NONE  if not defined

* Search for <ucred.h> in addition to <sys/ucred.h> (configure.ac)

* Changes include of <sys/errno.h> to <errno.h>.
  I _think_ this should be safe on all platforms (and it's the standard)

* Changes local variable name s_addr to saddr in takeover.c.
  s_addr is a Single Unix Specification defined name.

* Checks if LOG_AUTHPRIV exists (it does not in Solaris)

Original patch by Magne Mæhre, applied with minor changes
configure.ac
include/system.h
include/util.h
src/system.c
src/takeover.c
src/util.c