Whamcloud - gitweb
Branch b_head_libcfs
authorrobert.read <robert.read>
Thu, 24 Jul 2008 21:07:17 +0000 (21:07 +0000)
committerrobert.read <robert.read>
Thu, 24 Jul 2008 21:07:17 +0000 (21:07 +0000)
b=16445

Cleanup type definitions.

Remove lustre_types.h, lustre/types.h, and libcfs/types.h. The linux types (__u8 etc)
are now defined by arch specific includes in libcfs.

lustre.spec.in

index d21303c..fda6602 100644 (file)
@@ -162,12 +162,15 @@ fi
 
 # Have universal lustre headers 
 if [ -f $RPM_BUILD_DIR/lustre-%{version}/lustre/include/lustre/lustre_idl.h ] ; then
-  echo '%attr(-, root, root) /usr/include/linux/lustre_types.h' >>lustre.files
   echo '%attr(-, root, root) /usr/include/linux/lustre_user.h' >>lustre.files
 else
   echo '%attr(-, root, root) /usr/include/linux/lustre_idl.h' >>lustre.files
 fi
 
+if [ -f $RPM_BUILD_DIR/lustre-%{version}/lustre/include/linux/lustre_types.h ] ; then
+  echo '%attr(-, root, root) /usr/include/linux/lustre_types.h' >>lustre.files
+fi
+
 echo '%attr(-, root, root) %{_libdir}/lustre/tests/*' >lustre-tests.files
 echo '%attr(-, root, root) /lib/modules/%{kversion}/kernel/fs/lustre/llog_test.*' >>lustre-tests.files
 modules_excludes="llog_test"