Use correct `<poll.h>` include
authorDavid Seifert <soap@gentoo.org>
Mon, 2 Aug 2021 14:09:10 +0000 (16:09 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 6 Aug 2021 14:43:07 +0000 (16:43 +0200)
* `<sys/poll.h>` is not specified in POSIX

(cherry picked from commit 2b6c0bb2a341c95223ce672249e43c743b03d78c)
(cherry picked from commit c15fc774d59c486adb81c7eb07fe58b2b3db86da)
(cherry picked from commit 5c9236971acc52455df51226996fbe71ecedc2f6f)

src/shared/nscd-flush.c
src/shared/varlink.c

index dfc47c423441a1aea646cac6c7c9fcd2f12141da..19e16d93455c88662e040e97d19f10ef014e335d 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
-#include <sys/poll.h>
+#include <poll.h>
 
 #include "fd-util.h"
 #include "io-util.h"
index c98802d2820a3b288b0c5ba2a48cd4bc5ba74ef4..48fe377f49f4a2c1d0c33bafc41c5f095996a60d 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include <sys/poll.h>
+#include <poll.h>
 
 #include "alloc-util.h"
 #include "errno-util.h"