aboutsummaryrefslogtreecommitdiffstats
path: root/lib/librte_vhost/fd_man.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librte_vhost/fd_man.h')
-rw-r--r--lib/librte_vhost/fd_man.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/librte_vhost/fd_man.h b/lib/librte_vhost/fd_man.h
index bd66ed1c..d319cac6 100644
--- a/lib/librte_vhost/fd_man.h
+++ b/lib/librte_vhost/fd_man.h
@@ -35,6 +35,7 @@
#define _FD_MAN_H_
#include <stdint.h>
#include <pthread.h>
+#include <poll.h>
#define MAX_FDS 1024
@@ -49,6 +50,7 @@ struct fdentry {
};
struct fdset {
+ struct pollfd rwfds[MAX_FDS];
struct fdentry fd[MAX_FDS];
pthread_mutex_t fd_mutex;
int num; /* current fd number of this fdset */