mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
src: conditionalize / remove use of poll.h
Remove imports of poll.h which are redundant, and conditionalize remaining usage that needs to compile on Windows platforms. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
32363452af
commit
7aef7cdbb5
@ -20,7 +20,6 @@
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <poll.h>
|
||||
|
||||
#include "virpolkit.h"
|
||||
#include "virerror.h"
|
||||
@ -36,6 +35,7 @@
|
||||
VIR_LOG_INIT("util.polkit");
|
||||
|
||||
#if WITH_POLKIT
|
||||
# include <poll.h>
|
||||
|
||||
struct _virPolkitAgent {
|
||||
virCommandPtr cmd;
|
||||
|
@ -25,7 +25,6 @@
|
||||
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <poll.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifdef WIN32
|
||||
|
@ -23,13 +23,13 @@
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <poll.h>
|
||||
|
||||
#include "internal.h"
|
||||
#define NO_LIBVIRT
|
||||
#include "testutils.h"
|
||||
|
||||
#ifndef WIN32
|
||||
# include <poll.h>
|
||||
|
||||
/* Some UNIX lack it in headers & it doesn't hurt to redeclare */
|
||||
extern char **environ;
|
||||
|
Loading…
Reference in New Issue
Block a user