]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: fix build on non-Linux
authorEric Blake <eblake@redhat.com>
Thu, 2 Oct 2014 03:18:52 +0000 (21:18 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 2 Oct 2014 03:23:09 +0000 (21:23 -0600)
commit4acc03ae8b7b33101af2a4df0f84a3405ffba4a4
tree6ec15812766f36d1011d06b7874cf6d0604dd4da
parentadac88c3473044545718505fa5b98835084faa91
build: fix build on non-Linux

A cygwin build of 1.2.9 fails with:

util/virprocess.c:87:27: fatal error: sys/syscall.h: No such file or directory
 #  include <sys/syscall.h>

But in reality, the ONLY user of setns() is lxc, which is Linux-only.
It's easiest to just limit the setns workarounds to Linux.

* src/util/virprocess.c (setns): Limit definition to Linux.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/util/virprocess.c