diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-09-18 21:49:30 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-09-18 21:49:30 +0200 |
| commit | 0ae0509679033c8c9b511b83027d5ef076b7bf2b (patch) | |
| tree | c43f6148296558badb40b807f2c4ec20486593c6 /include | |
| parent | 204c7fb2293f67f6277f917e854188f5540e6955 (diff) | |
| download | busybox-w32-0ae0509679033c8c9b511b83027d5ef076b7bf2b.tar.gz busybox-w32-0ae0509679033c8c9b511b83027d5ef076b7bf2b.tar.bz2 busybox-w32-0ae0509679033c8c9b511b83027d5ef076b7bf2b.zip | |
libbb: do not use fflush_unlocked, musl does not like fflush_unlocked(NULL)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index bf356d727..3752df982 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -203,8 +203,9 @@ int klogctl(int type, char *b, int len); | |||
| 203 | # define fgets(s,n,stream) fgets_unlocked(s,n,stream) | 203 | # define fgets(s,n,stream) fgets_unlocked(s,n,stream) |
| 204 | # undef fputs | 204 | # undef fputs |
| 205 | # define fputs(s,stream) fputs_unlocked(s,stream) | 205 | # define fputs(s,stream) fputs_unlocked(s,stream) |
| 206 | # undef fflush | 206 | /* musl <= 1.1.15 does not support fflush_unlocked(NULL) */ |
| 207 | # define fflush(stream) fflush_unlocked(stream) | 207 | //# undef fflush |
| 208 | //# define fflush(stream) fflush_unlocked(stream) | ||
| 208 | # undef feof | 209 | # undef feof |
| 209 | # define feof(stream) feof_unlocked(stream) | 210 | # define feof(stream) feof_unlocked(stream) |
| 210 | # undef ferror | 211 | # undef ferror |
