]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: fix mingw build of virprocess.c
authorEric Blake <eblake@redhat.com>
Thu, 2 May 2013 21:46:19 +0000 (15:46 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 2 May 2013 21:46:19 +0000 (15:46 -0600)
commit05f79a3894a04b305c18993bedf117c6b6e41d52
treedf117f4c871148783b71c7614ffad62b061019fd
parent348ac061330b78cc03ed2d6841df65be5a7782fc
build: fix mingw build of virprocess.c

Commit 776d49f4 added a static function that is only called
conditionally; leading to this compile error on mingw:

  CC       libvirt_util_la-virprocess.lo
../../src/util/virprocess.c:624:26: error: 'struct rlimit' declared inside parameter list [-Werror]
../../src/util/virprocess.c:624:26: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
../../src/util/virprocess.c:622:1: error: 'virProcessPrLimit' defined but not used [-Werror=unused-function]

* src/util/virprocess.c (virProcessPrLimit): Only declare
virProcessPrLimit when used.

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