[pgpool-hackers: 304] patch to solve SO_BINDTODEVICE undeclared on OS/X

Muhammad Usama m.usama at gmail.com
Mon Jul 1 21:01:51 JST 2013


Hello

I was trying to compile the pgpool-II on Mac OS/X and getting the
compilation errors.

wd_heartbeat.c: In function ‘wd_create_hb_send_socket’:
wd_heartbeat.c:90: error: storage size of ‘i’ isn’t known
wd_heartbeat.c:93: error: ‘SO_BINDTODEVICE’ undeclared (first use in this
function)

The reason is for platforms where SO_BINDTODEVICE is absent the related
code is not
properly omitted from compilation.

Please find the attached patch to fix the above mentioned issue.

Thanks

Muhammad Usama
EnterpriseDB Corporation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.sraoss.jp/pipermail/pgpool-hackers/attachments/20130701/132bc695/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgpool-compile.patch
Type: application/octet-stream
Size: 3824 bytes
Desc: not available
URL: <http://www.sraoss.jp/pipermail/pgpool-hackers/attachments/20130701/132bc695/attachment.obj>


More information about the pgpool-hackers mailing list