Files
Yegor Yefremov 059138326e package/libxmlrpc: add BR2_USE_MMU dependency
Build fails with:
server.c: In function 'ServerDaemonize':
server.c:1590:13: error: implicit declaration of function 'fork'
[-Wimplicit-function-declaration]
 1590 |     switch (fork()) {
      |             ^~~~

Hence, add BR2_USE_MMU to avoid building with toolchains without MMU
support.

Fixes:
https://autobuild.buildroot.org/results/10464159f2a9ff41ea0921a45ce12ecd0fa50ae7/

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
[Julien: move BR2_USE_MMU up to fix check-package error]
Signed-off-by: Julien Olivain <ju.o@free.fr>
2025-09-22 00:19:11 +02:00

30 lines
791 B
Plaintext

config BR2_PACKAGE_LIBXMLRPC
bool "libxmlrpc"
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_LIBCURL
help
XML-RPC is a quick-and-easy way to make procedure calls over
the Internet. It converts the procedure call into an XML
document, sends it to a remote server using HTTP, and gets
back the response as XML.
http://xmlrpc-c.sourceforge.net/
if BR2_PACKAGE_LIBXMLRPC
config BR2_PACKAGE_LIBXMLRPC_TOOLS_XMLRPC
bool "install cli tool"
depends on !BR2_STATIC_LIBS
help
Command line tool xmlrpc.
comment "cli tool needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS
endif # BR2_PACKAGE_LIBXMLRPC
comment "libxmlrpc needs a toolchain w/ threads"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS