OSDN Git Service

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:20:31 +0000 (22:20 +0300)
commit66bd917b591371811fe08c5071757b2ab654a6ff
tree8dc443d2a3d0316a4957d948cac3afb640438524
parent083cc494228c55f38d2fcc9ec19c957eff7adb00
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