Skip to content
Snippets Groups Projects
Commit 74b1974f authored by Walter Poxon's avatar Walter Poxon
Browse files

b=13539

i=adilger
i=rread

add linux/random.h to AC_CHECK_HEADERS
add #if defined(HAVE_LINUX_RANDOM_H) to lustre/lvfs/prng.c
parent 8b2ce7d8
No related branches found
No related tags found
No related merge requests found
......@@ -1563,6 +1563,9 @@ AC_CHECK_FUNCS([inet_ntoa])
# libsysio/src/readlink.c
LC_READLINK_SSIZE_T
# lvfs/prng.c
AC_CHECK_HEADERS([linux/random.h])
# utils/llverfs.c
AC_CHECK_HEADERS([ext2fs/ext2fs.h])
......
......@@ -18,7 +18,9 @@
#define get_random_bytes(val, size) (*val) = 0
#endif
#include <obd_class.h>
#if defined(HAVE_LINUX_RANDOM_H)
#include <linux/random.h>
#endif
/*
From: George Marsaglia <geo@stat.fsu.edu>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment