From: Guido Günther Date: Fri, 8 Mar 2013 16:28:37 +0000 (+0100) Subject: lxc: include sys/stat.h X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dac288fd2d92f33536221a865e02033fc7518914;p=thirdparty%2Flibvirt.git lxc: include sys/stat.h 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) --- diff --git a/src/lxc/lxc_process.c b/src/lxc/lxc_process.c index aaa81a7837..7c869cb941 100644 --- a/src/lxc/lxc_process.c +++ b/src/lxc/lxc_process.c @@ -21,6 +21,7 @@ #include +#include #include #include #include