Skip to content

Commit 4ae0be9

Browse files
authored
Avoid implicit function declarations in tests, for C99 compatibility (#521)
Include <stdio.h> for printf and define _GNU_SOURCE for execvpe. Future compilers will not support implicit function declartions by default, causing these tests to fail to build.
1 parent 82ff687 commit 4ae0be9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/cases/intercept/preload/errno_reset.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <stdlib.h>
66
#include <errno.h>
77
#include <string.h>
8+
#include <stdio.h>
89

910
int main()
1011
{

test/cases/intercept/preload/posix/execvpe/success.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "config.h"
99

1010
#if defined HAVE_UNISTD_H
11+
#define _GNU_SOURCE
1112
#include <unistd.h>
1213
#endif
1314

0 commit comments

Comments
 (0)