Include <linux/ioctl32.h> if using old-style register_ioctl32_conversion.
authorIan Abbott <abbotti@mev.co.uk>
Wed, 12 Dec 2007 11:34:01 +0000 (11:34 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Wed, 12 Dec 2007 11:34:01 +0000 (11:34 +0000)
comedi/comedi_compat32.c

index 22e99fc9d43ab92032d2dd5ead68ade3fe0d84e4..4dedc967c82cdb40fcc544038226f4888fd3f33c 100644 (file)
 
 #ifdef CONFIG_COMPAT
 
+#ifndef HAVE_COMPAT_IOCTL
+#include <linux/ioctl32.h>     /* for (un)register_ioctl32_conversion */
+#endif
+
 #define COMEDI32_CHANINFO _IOR(CIO,3,comedi32_chaninfo)
 #define COMEDI32_RANGEINFO _IOR(CIO,8,comedi32_rangeinfo)
 /* N.B. COMEDI32_CMD and COMEDI_CMD ought to use _IOWR, not _IOR.