[LTP] [PATCH] network/nfs05_make_tree: Pass -D_GNU_SOURCE to enable O_DIRECTORY
Yuriy Kolerov
yuriy.kolerov@synopsys.com
Thu Aug 18 19:42:47 CEST 2016
This test uses O_DIRECTORY macro and in some standard libraries it
may be defined only if _GNU_SOURCE is enabled.
Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
---
testcases/network/nfs/nfs_stress/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/network/nfs/nfs_stress/Makefile b/testcases/network/nfs/nfs_stress/Makefile
index 3162cea..2fde4cb 100644
--- a/testcases/network/nfs/nfs_stress/Makefile
+++ b/testcases/network/nfs/nfs_stress/Makefile
@@ -20,6 +20,7 @@ include $(top_srcdir)/include/mk/testcases.mk
nfs04_create_file: CPPFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
nfs05_make_tree: LDLIBS += -lpthread
+nfs05_make_tree: CPPFLAGS += -D_GNU_SOURCE
INSTALL_TARGETS := nfs_lib.sh \
nfs01 \
--
2.7.4
More information about the ltp
mailing list