]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: fix virfilewrapper
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 9 May 2017 13:02:26 +0000 (17:02 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 9 May 2017 13:03:02 +0000 (17:03 +0400)
commit058bf5549f66534c0c6c480ee06e1090134568dc
treeb43f7465edd71ee1d45c93f000b866edbfc1ae33
parent40824174258a835c5725af1c01317844d31d9420
tests: fix virfilewrapper

If __lxstat() and __xstat() functions are not available, build fails with:

  CC       virfilewrapper.o
virfilewrapper.c:180:5: error: no previous prototype for function '__lxstat' [-Werror,-Wmissing-prototypes]
int __lxstat(int ver, const char *path, struct stat *sb)
    ^
virfilewrapper.c:208:5: error: no previous prototype for function '__xstat' [-Werror,-Wmissing-prototypes]
int __xstat(int ver, const char *path, struct stat *sb)

Luckily, we already check presence of these functions in configure
using AC_CHECK_FUNCS, so just don't wrap these if they're not available.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
tests/virfilewrapper.c