If ioctl.ph is generating that error, you're going to have to provide a copy of it.
".ph" files are generated either by "c2ph" or "h2ph".
If c2ph or h2ph made a mistake when converting your ioctl.h (I'm guessing its ioctl.h),
and your ioctl.h is not broken, then you should also provide a copy of it.
MJDsays "you can't just make shit up and expect the computer to know what you mean, retardo!"