Skip to content

Commit 29ce0d3

Browse files
FlyGoathuth
authored andcommitted
libvhost-user: Include poll.h instead of sys/poll.h
Musl libc complains about it's wrong usage. In file included from ../subprojects/libvhost-user/libvhost-user.h:20, from ../subprojects/libvhost-user/libvhost-user-glib.h:19, from ../subprojects/libvhost-user/libvhost-user-glib.c:15: /usr/include/sys/poll.h:1:2: error: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Werror=cpp] 1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h> | ^~~~~~~ Signed-off-by: Jiaxun Yang <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Signed-off-by: Thomas Huth <[email protected]>
1 parent cd5d20e commit 29ce0d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subprojects/libvhost-user/libvhost-user.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <stdint.h>
1818
#include <stdbool.h>
1919
#include <stddef.h>
20-
#include <sys/poll.h>
20+
#include <poll.h>
2121
#include <linux/vhost.h>
2222
#include <pthread.h>
2323
#include "standard-headers/linux/virtio_ring.h"

0 commit comments

Comments
 (0)