From: walter Date: Tue, 29 Apr 2008 22:49:51 +0000 (+0000) Subject: b=13539 X-Git-Tag: v1_8_0_110~569 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=00f7f387e651e35fe61dc52bd15ec580d525962c;p=fs%2Flustre-release.git b=13539 i=johann i=adilger fix for configure: WARNING: linux/random.h: present but cannot be compiled --- diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 7838733..ad4b617 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -1563,8 +1563,12 @@ AC_CHECK_FUNCS([inet_ntoa]) # libsysio/src/readlink.c LC_READLINK_SSIZE_T -# lvfs/prng.c -AC_CHECK_HEADERS([linux/random.h]) +# lvfs/prng.c - depends on linux/types.h from liblustre/dir.c +AC_CHECK_HEADERS([linux/random.h], [], [], + [#ifdef HAVE_LINUX_TYPES_H + # include + #endif + ]) # utils/llverfs.c AC_CHECK_HEADERS([ext2fs/ext2fs.h])