#define DTTOIF(dirtype) ((dirtype) << S_DT_SHIFT)
#endif
+#ifdef HAVE_PROC_OPS
+#define PROC_OWNER(_fn)
+#else
+#define proc_ops file_operations
+#define PROC_OWNER(_owner) .owner = (_owner),
+#define proc_open open
+#define proc_read read
+#define proc_write write
+#define proc_lseek llseek
+#define proc_release release
+#define proc_poll poll
+#define proc_ioctl unlocked_ioctl
+#define proc_compat_ioctl compat_ioctl
+#define proc_mmap mmap
+#define proc_get_unmapped_area get_unmapped_area
+#endif
+
#endif