Skip to content

Commit 81e669f

Browse files
committed
execve: Remove unnecessary #ifndef _GNU_SOURCE
Signed-off-by: Petr Vorel <[email protected]>
1 parent 8d18c72 commit 81e669f

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

testcases/kernel/syscalls/execve/execve02.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414
* errno should be EACCES.
1515
*/
1616

17-
#ifndef _GNU_SOURCE
1817
#define _GNU_SOURCE
19-
#endif
18+
2019
#include <sys/types.h>
2120
#include <sys/stat.h>
2221
#include <errno.h>

testcases/kernel/syscalls/execve/execve03.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@
3535
* permissions - fails with ENOEXEC.
3636
*/
3737

38-
#ifndef _GNU_SOURCE
3938
#define _GNU_SOURCE
40-
#endif
39+
4140
#include <sys/types.h>
4241
#include <sys/mman.h>
4342
#include <sys/stat.h>

testcases/kernel/syscalls/execve/execve04.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
* writing fails with ETXTBSY.
1414
*/
1515

16-
#ifndef _GNU_SOURCE
1716
#define _GNU_SOURCE
18-
#endif
17+
1918
#include <sys/types.h>
2019
#include <sys/wait.h>
2120
#include <errno.h>

0 commit comments

Comments
 (0)