From b3fbc8fe94db61776fd424ef9f695b420cbeda8a Mon Sep 17 00:00:00 2001 From: zam Date: Mon, 14 May 2007 08:30:04 +0000 Subject: [PATCH] add LLCPP flags to enable extra functions to use in user-level libcfs code. --- build/autoconf/lustre-build.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" -- 1.8.3.1