mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00: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 <config.h>
|
||||||
#include <poll.h>
|
|
||||||
|
|
||||||
#include "virpolkit.h"
|
#include "virpolkit.h"
|
||||||
#include "virerror.h"
|
#include "virerror.h"
|
||||||
@ -36,6 +35,7 @@
|
|||||||
VIR_LOG_INIT("util.polkit");
|
VIR_LOG_INIT("util.polkit");
|
||||||
|
|
||||||
#if WITH_POLKIT
|
#if WITH_POLKIT
|
||||||
|
# include <poll.h>
|
||||||
|
|
||||||
struct _virPolkitAgent {
|
struct _virPolkitAgent {
|
||||||
virCommandPtr cmd;
|
virCommandPtr cmd;
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <poll.h>
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
@ -23,13 +23,13 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <poll.h>
|
|
||||||
|
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#define NO_LIBVIRT
|
#define NO_LIBVIRT
|
||||||
#include "testutils.h"
|
#include "testutils.h"
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
|
# include <poll.h>
|
||||||
|
|
||||||
/* Some UNIX lack it in headers & it doesn't hurt to redeclare */
|
/* Some UNIX lack it in headers & it doesn't hurt to redeclare */
|
||||||
extern char **environ;
|
extern char **environ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user