build: fix compiler warning

node_device/node_device_driver.c: In function 'nodeDeviceVportCreateDelete':
node_device/node_device_driver.c:423: error: implicit declaration of function 'stat' [-Wimplicit-function-declaration]

* src/node_device/node_device_driver.c (includes): Add <sys/stat.h>.
This commit is contained in:
Eric Blake 2010-08-18 13:43:26 -06:00
parent 1dcd5ab989
commit 9ba934c640

View File

@ -1,6 +1,7 @@
/*
* node_device.c: node device enumeration
*
* Copyright (C) 2010 Red Hat, Inc.
* Copyright (C) 2008 Virtual Iron Software, Inc.
* Copyright (C) 2008 David F. Lively
*
@ -27,6 +28,7 @@
#include <errno.h>
#include <fcntl.h>
#include <time.h>
#include <sys/stat.h>
#include "virterror_internal.h"
#include "datatypes.h"