Whamcloud - gitweb
LU-5018 libcfs: don't depend on configure for lustre_user.h 58/10258/5
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 9 May 2014 04:38:58 +0000 (22:38 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 19 May 2014 16:19:20 +0000 (16:19 +0000)
commit241cdb8ba008d47fd96f0b6529797ce922e2b635
treeea1da69217b40a00c9af05e4a52428cf4c56c5e8
parent28f2ff94608c13a91c6f22742423c706536c874c
LU-5018 libcfs: don't depend on configure for lustre_user.h

Don't depend on configure to detect the presence of <linux/types.h>
in order to define the __u8, __u16, __u32, and __u64 types.  Instead,
just define these types directly if <linux/types.h> is not included
already.

The <linux/types.h> header is available on Linux systems with GCC
installed, which is required to build Lustre anyway.  On non-Linux
systems they should create an appropriate <linux/types.h> compat
header in the include path.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: Ida0915fe1b5829f3378e459c782844cf9df060e6
Reviewed-on: http://review.whamcloud.com/10258
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/linux/kp30.h
libcfs/include/libcfs/posix/posix-types.h