[LTP] [PATCH v2] network/nfs05_make_tree: Define _GNU_SOURCE to enable O_DIRECTORY
Yuriy Kolerov
yuriy.kolerov@synopsys.com
Fri Aug 19 13:30:23 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/nfs05_make_tree.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/testcases/network/nfs/nfs_stress/nfs05_make_tree.c b/testcases/network/nfs/nfs_stress/nfs05_make_tree.c
index 9f5e7a6..05eae4d 100644
--- a/testcases/network/nfs/nfs_stress/nfs05_make_tree.c
+++ b/testcases/network/nfs/nfs_stress/nfs05_make_tree.c
@@ -46,6 +46,9 @@
*
*/
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
#include <stdio.h>
#include <sys/stat.h>
#include <sys/wait.h>
--
2.7.4
More information about the ltp
mailing list