]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
mainloop: s,sys/poll,poll 3929/head
authorTycho Andersen <tycho@tycho.pizza>
Tue, 10 Aug 2021 14:45:21 +0000 (08:45 -0600)
committerTycho Andersen <tycho@tycho.pizza>
Tue, 10 Aug 2021 14:45:21 +0000 (08:45 -0600)
I get the following warning (which then fails the build because of
-Werror):

In file included from mainloop.c:11:
/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: Tycho Andersen <tycho@tycho.pizza>
src/lxc/mainloop.c

index c5bb5df5419b41a9bcb1d5999f9830917a2b2a1e..6261e2cbf8656a71b923f8f463bc1d0483954f91 100644 (file)
@@ -8,7 +8,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <sys/epoll.h>
 #include <unistd.h>