Fix compilation on FreeBSD and OSX from f15d52f
commit1b884495f7582065f584a9a6aabd7bed438b51bd
authorPaul Tarjan <ptarjan@fb.com>
Thu, 20 Mar 2014 04:11:48 +0000 (19 21:11 -0700)
committerSara Golemon <sgolemon@fb.com>
Wed, 26 Mar 2014 03:07:17 +0000 (25 20:07 -0700)
tree5ef84679ad87eb9d9530f9d4b2997dccece71e42
parent45dea0e1bb404495c39d34ea4ce9e96f2fe0cdd9
Fix compilation on FreeBSD and OSX from f15d52f

HOST_NAME_MAX is recommended by POSIX, but not required to be defined. 255
is generally a safe number to assume in that case and matches upstream's
behavior.
Closes #2089
Github Author: Chad Horohoe <chadhwikimedia.org>

Reviewed By: @fredemmott

Differential Revision: D1230067
hphp/runtime/ext/ext_network.cpp