From c51c3e45d53cc1603450c64f424ae4b05f30bced Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 15 Feb 2013 15:39:33 -0700 Subject: [PATCH] build: more mingw fixes More mingw build failures: CCLD libvirt-lxc.la /usr/lib64/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/ld: cannot find libvirt_lxc.def: No such file or directory CC virportallocatortest-virportallocatortest.o ../../tests/virportallocatortest.c: In function 'main': ../../tests/virportallocatortest.c:195:1: error: implicit declaration of function 'setenv' [-Werror=implicit-function-declaration] * src/Makefile.am (GENERATED_SYM_FILES): Also generate libvirt_lxc.def. * bootstrap.conf (gnulib_modules): Import setenv. --- bootstrap.conf | 1 + src/Makefile.am | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bootstrap.conf b/bootstrap.conf index 4b45a4f2fe..6e037572a1 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -92,6 +92,7 @@ regex random_r sched send +setenv setsockopt sigaction sigpipe diff --git a/src/Makefile.am b/src/Makefile.am index 0d2f2f8365..780cd5236d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1462,7 +1462,8 @@ EXTRA_DIST += \ libvirt_xenxs.syms \ libvirt_libssh2.syms -GENERATED_SYM_FILES = libvirt.syms libvirt.def libvirt_qemu.def +GENERATED_SYM_FILES = \ + libvirt.syms libvirt.def libvirt_qemu.def libvirt_lxc.def BUILT_SOURCES += $(GENERATED_SYM_FILES)