Please see attached patch for ioctl() on FreeBSD and Darwin. Their definition differ from (int, int, ...) and the gnulib variant doesn't work well on 64-bit Darwin with this proto.
//Markus - The panama-hat hacker
ioctl.patch
Description: Binary data
PGP.sig
Description: This is a digitally signed message part
