-#define LL_IOC_GETFLAGS _IOR ('f', 151, long)
-#define LL_IOC_SETFLAGS _IOW ('f', 152, long)
-#define LL_IOC_CLRFLAGS _IOW ('f', 153, long)
-#define LL_IOC_LOV_SETSTRIPE _IOW ('f', 154, long)
-#define LL_IOC_LOV_GETSTRIPE _IOW ('f', 155, long)
-#define LL_IOC_LOV_SETEA _IOW ('f', 156, long)
-#define LL_IOC_RECREATE_OBJ _IOW ('f', 157, long)
-#define LL_IOC_CW_LOCK _IOW ('f', 158, long)
-#define LL_IOC_CW_UNLOCK _IOW ('f', 159, long)
+#ifndef __KERNEL__
+# define NEED_QUOTA_DEFS
+# ifdef HAVE_QUOTA_SUPPORT
+# include <sys/quota.h>
+# endif
+#else
+# include <linux/version.h>
+# ifdef HAVE_QUOTA_SUPPORT
+# include <linux/quota.h>
+# endif
+#endif