提交 f05759e0 编写于 作者: E Eric Blake

build: fix mingw build

./autobuild.sh died on several messages resembling:

../../src/rpc/virnetsocket.c: In function 'virNetSocketNewListenTCP':
../../src/rpc/virnetsocket.c:231:9: error: implicit declaration of function 'bind_used_without_requesting_gnulib_module_bind' [-Wimplicit-function-declaration]
../../src/rpc/virnetsocket.c:231:9: error: nested extern declaration of 'bind_used_without_requesting_gnulib_module_bind' [-Wnested-externs]

Basically, gnulib socket fds are not safe to pass to mingw socket
functions unless we pull in those gnulib modules.

* bootstrap.conf (gnulib_modules): Add modules to handle socket
functions on mingw.
上级 c8eaba64
...@@ -19,8 +19,10 @@ ...@@ -19,8 +19,10 @@
# gnulib modules used by this package. # gnulib modules used by this package.
gnulib_modules=' gnulib_modules='
accept
areadlink areadlink
base64 base64
bind
byteswap byteswap
c-ctype c-ctype
c-strcase c-strcase
...@@ -40,6 +42,8 @@ getaddrinfo ...@@ -40,6 +42,8 @@ getaddrinfo
getcwd-lgpl getcwd-lgpl
gethostname gethostname
getpass getpass
getpeername
getsockname
gettext-h gettext-h
gettimeofday gettimeofday
gitlog-to-changelog gitlog-to-changelog
...@@ -48,6 +52,7 @@ ignore-value ...@@ -48,6 +52,7 @@ ignore-value
inet_pton inet_pton
intprops intprops
ioctl ioctl
listen
maintainer-makefile maintainer-makefile
manywarnings manywarnings
mkstemp mkstemp
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册