提交 a5a46c6f 编写于 作者: D Daniel P. Berrange

Add some missing include files which break build in certain platforms

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>
上级 7d8f5eb3
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <mntent.h> #include <mntent.h>
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <config.h> #include <config.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/stat.h>
#include "node_device_driver.h" #include "node_device_driver.h"
#include "node_device_hal.h" #include "node_device_hal.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册