]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vmspawn: use poll.h rather than sys/poll.h
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 19 Jul 2025 02:58:20 +0000 (11:58 +0900)
committerMike Yuan <me@yhndnzj.com>
Sat, 19 Jul 2025 07:43:40 +0000 (09:43 +0200)
This does not change anything, as poll.h is a one-line wrapper of sys/poll.h.
Note that man pages e.g. poll(2) indicate to include poll.h rather than sys/poll.h.
So, let's use poll.h.

Similar to 8139906eaaced08d7924abf012561a5e8e9fbf2a.
Follow-up for 0fc45c8d20ad46ab9be0d8f29b16e606e0dd44ca.

src/vmspawn/vmspawn.c

index 2eb7d3c7a90fb81d4496e84a45fca55d6bba08b9..29276e556a0fb778f57a6d2a689c8886e1fc931d 100644 (file)
@@ -1,10 +1,10 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <getopt.h>
+#include <poll.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/poll.h>
 #include <sys/stat.h>
 #include <unistd.h>