Skip to content

Commit 81b7b1e

Browse files
devnexenpm215
authored andcommitted
util/compatfd.c: Only include <sys/syscall.h> if CONFIG_SIGNALFD
util/compatfd.c includes <sys/syscall.h> so that the CONFIG_SIGNALFD code can use SYS_signalfd. Guard the #include with CONFIG_SIGNALFD to avoid portability issues on hosts like Haiku which do not provide that header file. Signed-off-by: David Carlier <[email protected]> Reviewed-by: Peter Maydell <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Signed-off-by: Peter Maydell <[email protected]> Message-id: [email protected] [PMM: Expanded commit message] Reviewed-by: Peter Maydell <[email protected]> Signed-off-by: Peter Maydell <[email protected]>
1 parent 652a46e commit 81b7b1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

util/compatfd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
#include "qemu/osdep.h"
1717
#include "qemu/thread.h"
1818

19+
#if defined(CONFIG_SIGNALFD)
1920
#include <sys/syscall.h>
21+
#endif
2022

2123
struct sigfd_compat_info
2224
{

0 commit comments

Comments
 (0)