]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
lxc: include sys/stat.h
authorGuido Günther <agx@sigxcpu.org>
Fri, 8 Mar 2013 16:28:37 +0000 (17:28 +0100)
committerDoug Goldstein <cardoe@cardoe.com>
Thu, 14 Mar 2013 04:23:50 +0000 (23:23 -0500)
This fixes the build on Debian Wheezy which otherwise fails with:

  CC     libvirt_driver_lxc_impl_la-lxc_process.lo
  lxc/lxc_process.c: In function 'virLXCProcessGetNsInode':
  lxc/lxc_process.c:648:5: error: implicit declaration of function 'stat' [-Werror=implicit-function-declaration]
  lxc/lxc_process.c:648:5: error: nested extern declaration of 'stat' [-Werror=nested-externs]
  cc1: all warnings being treated as errors
(cherry picked from commit c8871d8fbda27f823e8799a4136670e656345399)

src/lxc/lxc_process.c

index aaa81a7837604704a05ef7e4f58ac372b19f127e..7c869cb9417a31017f71380342a69ea8e460c811 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <config.h>
 
+#include <sys/stat.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <signal.h>