diff mbox series

selftests: execveat: Fix _GNU_SOURCE redefined build warn

Message ID 20190924174711.22068-1-skhan@linuxfoundation.org (mailing list archive)
State New
Headers show
Series selftests: execveat: Fix _GNU_SOURCE redefined build warn | expand

Commit Message

Shuah Khan Sept. 24, 2019, 5:47 p.m. UTC
Fix the following _GNU_SOURCE redefined build warn:

execveat.c:8: warning: "_GNU_SOURCE" redefined

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
 tools/testing/selftests/exec/execveat.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series


diff --git a/tools/testing/selftests/exec/execveat.c b/tools/testing/selftests/exec/execveat.c
index cbb6efbdb786..045a3794792a 100644
--- a/tools/testing/selftests/exec/execveat.c
+++ b/tools/testing/selftests/exec/execveat.c
@@ -5,7 +5,9 @@ 
  * Selftests for execveat(2).
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE  /* to get O_PATH, AT_EMPTY_PATH */
 #include <sys/sendfile.h>
 #include <sys/stat.h>
 #include <sys/syscall.h>