X-Git-Url: https://git.whamcloud.com/gitweb?a=blobdiff_plain;f=build%2Fautoconf%2Flustre-build.m4;h=b34e9b8125a2177ef19ae46b2db0952a00db3cf0;hb=b3fbc8fe94db61776fd424ef9f695b420cbeda8a;hp=76970fdeaf8819584596a61a68583f09ee17972e;hpb=83159ed8e5300ea2ba68bc55b53bd8c6e636ba4e;p=fs%2Flustre-release.git diff --git a/build/autoconf/lustre-build.m4 b/build/autoconf/lustre-build.m4 index 76970fd..b34e9b8 100644 --- a/build/autoconf/lustre-build.m4 +++ b/build/autoconf/lustre-build.m4 @@ -447,9 +447,11 @@ fi ]) +AC_CHECK_FUNCS(strnlen pread pwrite directio) + CPPFLAGS="-I\$(top_builddir)/lnet/include -I\$(top_srcdir)/lnet/include -I\$(top_builddir)/lustre/include -I\$(top_srcdir)/lustre/include $CPPFLAGS" -LLCPPFLAGS="-D__arch_lib__ -D_LARGEFILE64_SOURCE=1" +LLCPPFLAGS="-D__arch_lib__ -D_LARGEFILE64_SOURCE=1 -D_GNU_SOURCE -D_XOPEN_SOURCE=500" AC_SUBST(LLCPPFLAGS) LLCFLAGS="-g -Wall -fPIC"