freebsd: In nbdkit_nanosleep, fallback to calling nanosleep(2).
commit38306423cd445b729ebeb87a71481b0ec16082a5
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 28 Aug 2019 16:11:45 +0000 (28 17:11 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 28 Aug 2019 16:55:46 +0000 (28 17:55 +0100)
treec163d9a95fe02a0a2ea7634c8b34c3bb722737fb
parent5a1db63d71763621a8e8cf977389371d582cc964
freebsd: In nbdkit_nanosleep, fallback to calling nanosleep(2).

Rather than failing to compile on platforms which lack POLLRDHUP such
as FreeBSD, simply fallback to the old method of sleeping.

This leaves the porting suggestions as a comment in case someone wants
to implement a better solution for particular platforms.
server/public.c