The attached patch is needed for portability to GNU/kFreeBSD systems (FreeBSD kernel and glibc for the C library). It has been applied to the Debian package and tested by the Debian GNU/kFreeBSD porters.