Fix errors with compilation for poll_datagram.