Workaround for the missing ENODATA constant in FreeBSD