]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Add some missing include files which break build in certain platforms
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 22 Jan 2010 13:21:16 +0000 (13:21 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 25 Jan 2010 17:08:37 +0000 (17:08 +0000)
Two files were using functions from <sys/stat.h> but not including
in. Most of the time they got this automatically via another header,
but certain build flag combinations can reveal the problem

* src/lxc/lxc_container.c, src/node_device/node_device_linux_sysfs.c:
  Add <sys/stat.h>

src/lxc/lxc_container.c
src/node_device/node_device_linux_sysfs.c

index 539a1f499f8e14d9047fcb913208bf680fdd8b0c..02242c723d2338810b91d8fff118a667788da854 100644 (file)
@@ -32,6 +32,7 @@
 #include <sys/ioctl.h>
 #include <sys/mount.h>
 #include <sys/wait.h>
+#include <sys/stat.h>
 #include <unistd.h>
 #include <mntent.h>
 
index 361a084a5895c9c3c3fe0ed895e05eb6afe60b8c..33e658d87a14f320401b083be4ae1b4d7eb5b695 100644 (file)
@@ -23,6 +23,7 @@
 #include <config.h>
 
 #include <fcntl.h>
+#include <sys/stat.h>
 
 #include "node_device_driver.h"
 #include "node_device_hal.h"