selftests: execveat: Fix _GNU_SOURCE redefined build warn
Subsystems (3)
Shuah Khan
maintainerPATCH 1/1 selftests: execveat: Fix _GNU_SOURCE redefined build warn
Fix the following _GNU_SOURCE redefined build warn:
execveat.c:8: warning: "_GNU_SOURCE" redefined
Signed-off-by Shuah Khan <[email protected]>
--- tools/testing/selftests/exec/execveat.c | 2 ++ 1 file changed, 2 insertions(+)
tools/testing/selftests/exec/execveat.c +2 -0
@@ -5,7 +5,9 @@* Selftests for execveat(2). */ +#ifndef _GNU_SOURCE#define _GNU_SOURCE/* to get O_PATH, AT_EMPTY_PATH */ +#endif #include <sys/sendfile.h> #include <sys/stat.h> #include <sys/syscall.h>
Signature · 1 line
2.20.1