]> 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)
committerGuido Günther <agx@sigxcpu.org>
Fri, 8 Mar 2013 18:11:32 +0000 (19:11 +0100)
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

src/lxc/lxc_process.c

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