Skip to content

Commit

Permalink
tests/strerror_override.c: fix compilation error
Browse files Browse the repository at this point in the history
I got this on Mac OS X at least.
Not sure if it shows up in other envs

error:
```
strerror_override.c:53:13: error: incompatible redeclaration of library function 'strerror' [-Werror,-Wincompatible-library-redeclaration]
const char *strerror(int errno_in)
```

Signed-off-by: Alexandru Ardelean <[email protected]>
  • Loading branch information
commodo committed Nov 4, 2016
1 parent 0e91183 commit 2fbdee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/strerror_override.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static struct {

#define PREFIX "ERRNO="
static char errno_buf[128] = PREFIX;
const char *strerror(int errno_in)
char *strerror(int errno_in)
{
int start_idx;
char digbuf[20];
Expand Down

0 comments on commit 2fbdee1

Please sign in to comment.