Whamcloud - gitweb
- fix liblustre build
authortappro <tappro>
Wed, 26 Nov 2008 21:03:29 +0000 (21:03 +0000)
committertappro <tappro>
Wed, 26 Nov 2008 21:03:29 +0000 (21:03 +0000)
  b:17717

lustre/include/lustre_lib.h

index 302c919..ed3f98c 100644 (file)
@@ -75,7 +75,14 @@ void target_trans_table_init(struct obd_device *obd);
 __u32 target_trans_table_last_time(struct obd_export *exp);
 void target_trans_table_recalc(struct obd_device *obd, __u32 new_age);
 void target_trans_table_update(struct obd_export *exp, __u64 transno);
+#ifdef __KERNEL__
 int target_fs_version_capable(struct obd_device *obd);
+#else
+static inline int target_fs_version_capable(struct obd_device *obd)
+{
+        return 0;
+}
+#endif
 int target_handle_connect(struct ptlrpc_request *req, svc_handler_t handler);
 int target_handle_disconnect(struct ptlrpc_request *req);
 void target_destroy_export(struct obd_export *exp);