Whamcloud - gitweb
Branch b_head_libcfs
authorrobert.read <robert.read>
Thu, 3 Jul 2008 20:48:32 +0000 (20:48 +0000)
committerrobert.read <robert.read>
Thu, 3 Jul 2008 20:48:32 +0000 (20:48 +0000)
b=16159
i=isaac

Cleanup liblustre.

build/autoconf/lustre-build.m4

index 0660393..5ccadc6 100644 (file)
@@ -598,7 +598,8 @@ CPPFLAGS="-I\$(top_builddir)/$LIBCFS_INCLUDE_DIR -I\$(top_srcdir)/$LIBCFS_INCLUD
 LLCPPFLAGS="-D__arch_lib__ -D_LARGEFILE64_SOURCE=1"
 AC_SUBST(LLCPPFLAGS)
 
 LLCPPFLAGS="-D__arch_lib__ -D_LARGEFILE64_SOURCE=1"
 AC_SUBST(LLCPPFLAGS)
 
-LLCFLAGS="-g -Wall -fPIC"
+# Add _GNU_SOURCE for strnlen on linux
+LLCFLAGS="-g -Wall -fPIC -D_GNU_SOURCE"
 AC_SUBST(LLCFLAGS)
 
 # everyone builds against lnet and lustre
 AC_SUBST(LLCFLAGS)
 
 # everyone builds against lnet and lustre