All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v2] network/nfs05_make_tree: Define _GNU_SOURCE to enable O_DIRECTORY
@ 2016-08-19 11:30 Yuriy Kolerov
  2016-08-19 15:31 ` Alexey Kodanev
  0 siblings, 1 reply; 2+ messages in thread
From: Yuriy Kolerov @ 2016-08-19 11:30 UTC (permalink / raw)
  To: ltp

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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [LTP] [PATCH v2] network/nfs05_make_tree: Define _GNU_SOURCE to enable O_DIRECTORY
  2016-08-19 11:30 [LTP] [PATCH v2] network/nfs05_make_tree: Define _GNU_SOURCE to enable O_DIRECTORY Yuriy Kolerov
@ 2016-08-19 15:31 ` Alexey Kodanev
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey Kodanev @ 2016-08-19 15:31 UTC (permalink / raw)
  To: ltp

On 08/19/2016 02:30 PM, Yuriy Kolerov wrote:
> This test uses O_DIRECTORY macro and in some standard libraries it
> may be defined only if _GNU_SOURCE is enabled.

Removed redundant #ifdef and applied. Thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-19 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-19 11:30 [LTP] [PATCH v2] network/nfs05_make_tree: Define _GNU_SOURCE to enable O_DIRECTORY Yuriy Kolerov
2016-08-19 15:31 ` Alexey Kodanev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.