Fall back from mknod() to socket()/bind() on EPERM for SOCK_STREAM.
Fall back from mknod() to socket()/bind() on EPERM for SOCK_STREAM.

Apparently OS X is throwing EPERM for mknod(... SOCK_STREAM), and the
current OS X manpage does state that mknod() requires superuser
privileges.

Thanks to Zoran Zaric <zz@zoranzaric.de> for the report.

Signed-off-by: Rob Browning <1dc5917c2adeeba13d1ef33dbb40691a1b67cc65@defaultvalue.org>

mhoeher/bup,jbaber/bup,pombredanne/bup,tjanez/bup,mhoeher/bup,pombredanne/bup,pombredanne/bup,pombredanne/bup,jbaber/bup,ToxicFrog/bup,pombredanne/bup,gevaerts/bup,tjanez/bup,gevaerts/bup,tjanez/bup,pombredanne/bup,ToxicFrog/bup,tjanez/bup,jbaber/bup,jbaber/bup,mhoeher/bup,mhoeher/bup,ToxicFrog/bup,tjanez/bup,mhoeher/bup,gevaerts/bup,gevaerts/bup,ToxicFrog/bup,mhoeher/bup,tjanez/bup,jbaber/bup,gevaerts/bup,jbaber/bup,ToxicFrog/bup