]> granicus.if.org Git - postgresql/commit
On HP/UX, the structs used by ioctl(SIOCGLIFCONF) are named differently
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 13 Apr 2011 19:20:31 +0000 (22:20 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 13 Apr 2011 19:25:27 +0000 (22:25 +0300)
commit40e64017f3a4f1f7547dcbc62c2dcf80511ff842
tree96618fbfa422bc11b59e7c811bfc09da46a52ece
parent54685b1c2b356b4b9c0938f6b8dcc52e173c0400
On HP/UX, the structs used by ioctl(SIOCGLIFCONF) are named differently
than on other platforms, and only IPv6 addresses are returned. Because of
those two issues, fall back to ioctl(SIOCGIFCONF) on HP/UX, so that it at
least compiles and finds IPv4 addresses. This function is currently only
used for interpreting samehost/samenet in pg_hba.conf, which isn't that
critical.
src/backend/libpq/ip.c