block: move fcntl_setfl()

It is only used by block/file-posix.c, move it there.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Marc-André Lureau 2022-03-29 15:27:12 +04:00
parent 4d14cb0cd7
commit ad24b679d2
3 changed files with 15 additions and 17 deletions

View file

@ -96,8 +96,6 @@ static inline void qemu_funlockfile(FILE *f)
funlockfile(f);
}
int fcntl_setfl(int fd, int flag);
#ifdef __cplusplus
}
#endif