Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d83546
)
b=13539
author
walter
<walter>
Tue, 29 Apr 2008 22:52:59 +0000
(22:52 +0000)
committer
walter
<walter>
Tue, 29 Apr 2008 22:52:59 +0000
(22:52 +0000)
i=johann
i=adilger
fix for configure: WARNING: linux/random.h: present but cannot be compiled
lustre/autoconf/lustre-core.m4
patch
|
blob
|
history
diff --git
a/lustre/autoconf/lustre-core.m4
b/lustre/autoconf/lustre-core.m4
index
02c3545
..
a5b4ab3
100644
(file)
--- a/
lustre/autoconf/lustre-core.m4
+++ b/
lustre/autoconf/lustre-core.m4
@@
-1779,8
+1779,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 <linux/types.h>
+ #endif
+ ])
# utils/llverfs.c
AC_CHECK_HEADERS([ext2fs/ext2fs.h])