While you are at it another issue exist as well with newer platforms. On my Ubuntu 16 system I get the following build issues:
gcc -DHAVE_CONFIG_H -I. -I../.. -include /usr/src/lustre-2.8.60/undef.h -include /usr/src/lustre-2.8.60/config.h -I/usr/src/lustre-2.8.60/libcfs/include -I/usr/src/lustre-2.8.60/lnet/include -I/usr/src/lustre-2.8.60/lustre/include -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -g -O2 -Wall -Werror -MT liblustreapi.o -MD -MP -MF .deps/liblustreapi.Tpo -c -o liblustreapi.o liblustreapi.c
liblustreapi.c: In function ‘llapi_get_poollist’:
liblustreapi.c:1196:3: error: ‘readdir_r’ is deprecated [-Werror=deprecated-declarations]
rc = readdir_r(dir, &pool, &cookie);
^~
In file included from /usr/include/features.h:364:0,
from /usr/include/mntent.h:22,
from liblustreapi.c:44:
/usr/include/dirent.h:189:12: note: declared here
extern int __REDIRECT (readdir_r,
^
cc1: all warnings being treated as errors
Makefile:1191: recipe for target 'liblustreapi.o' failed
readdir() is the replacement for this function,
Landed for 2.10