aboutsummaryrefslogtreecommitdiff
path: root/include/sysemu/os-posix.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-03-23 19:57:40 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2022-04-06 14:31:55 +0200
commite9c4e0a8e54008bd83459777c8b8f5a38ff6fea2 (patch)
tree2bd025c0f97e1b7438eea309dc85449fa5fee88e /include/sysemu/os-posix.h
parent69242e7e7ea55f2a3f4fa50e367cad849c9cdc36 (diff)
Move fcntl_setfl() to oslib-posix
It is only implemented for POSIX anyway. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220323155743.1585078-30-marcandre.lureau@redhat.com> [Add braces around if statements. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/sysemu/os-posix.h')
-rw-r--r--include/sysemu/os-posix.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/os-posix.h b/include/sysemu/os-posix.h
index 58de7c994d..adbe19d3e4 100644
--- a/include/sysemu/os-posix.h
+++ b/include/sysemu/os-posix.h
@@ -96,6 +96,8 @@ static inline void qemu_funlockfile(FILE *f)
funlockfile(f);
}
+int fcntl_setfl(int fd, int flag);
+
#ifdef __cplusplus
}
#endif