Skip to content

Commit

Permalink
Avoid implicit function declarations in tests, for C99 compatibility (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
fweimer-rh authored Apr 16, 2023
1 parent 82ff687 commit 4ae0be9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/cases/intercept/preload/errno_reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>

int main()
{
Expand Down
1 change: 1 addition & 0 deletions test/cases/intercept/preload/posix/execvpe/success.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "config.h"

#if defined HAVE_UNISTD_H
#define _GNU_SOURCE
#include <unistd.h>
#endif

Expand Down

0 comments on commit 4ae0be9

Please sign in to comment.