]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal: use poll.h rather than sys/poll.h
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 9 Jun 2025 00:43:52 +0000 (09:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 9 Jun 2025 13:45:23 +0000 (22:45 +0900)
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.

src/journal/journald-sync.c

index b22cb54b1258ffb028a95c304223f101ffc6f81a..4722cfa9a3ff8a3ca9cf8ffddc86beee5350f655 100644 (file)
@@ -1,8 +1,8 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <linux/sockios.h>
+#include <poll.h>
 #include <sys/ioctl.h>
-#include <sys/poll.h>
 
 #include "sd-varlink.h"