- kernel 2.5 and liblustre build changes
- fixes to Makefile.am for 7.3-era versions of automake, which is quite possibly
the worst piece of software with which I come in contact on a daily basis
- small unlink fix
* Library General Public License.
* %End-Header%
*/
+#define DEBUG_SUBSYSTEM S_CLASS
+
+#ifdef __KERNEL__
#include <linux/ctype.h>
#include <linux/kernel.h>
-
-#define DEBUG_SUBSYSTEM S_CLASS
+#else
+#include <liblustre.h>
+#endif
#include <linux/obd_support.h>
#include <linux/obd_class.h>