Commit 8a52b02
committed
Fixed implicit declaration of fopen()
After upgrading to curl 8.16.0 we got
```
altsvc.c: In function 'altsvc_load':
altsvc.c:230:8: error: implicit declaration of function 'fopen' [-Werror=implicit-function-declaration]
fp = fopen(file, FOPEN_READTEXT);
^~~~~
```
on AIX 7.1. The header stdio.h is probably included indirectly on all
other platforms.
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>1 parent 52b33e4 commit 8a52b02
2 files changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments