Added preprocessor guards to all use of ioctl().
Added preprocessor guards to all use of ioctl().

conreality/consensus,conreality/conreality,conreality/consensus,conreality/conreality,conreality/conreality,conreality/consensus,conreality/conreality,conreality/consensus,conreality/conreality