package/nut: needs threads

threads are mandantory since bump to version 2.8.2 in commit
4edd837ac0 and
ff401e538b:

In file included from nutipc.cpp:38:
../include/nutipc.hpp:455:3: error: 'pthread_t' does not name a type
  455 |   pthread_t m_impl;
      |   ^~~~~~~~~

Fixes: 4edd837ac0
 - http://autobuild.buildroot.org/results/d16a24d60b298d7616a516ec0c6c30696ed93a58

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Fabrice Fontaine
2024-06-15 20:20:23 +02:00
committed by Yann E. MORIN
parent d1f3ae32c2
commit ddc46ee1a2
2 changed files with 6 additions and 4 deletions

View File

@@ -430,13 +430,14 @@ config BR2_PACKAGE_COLLECTD_NTPD
config BR2_PACKAGE_COLLECTD_NUT config BR2_PACKAGE_COLLECTD_NUT
bool "nut" bool "nut"
depends on BR2_INSTALL_LIBSTDCPP depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS
select BR2_PACKAGE_NUT select BR2_PACKAGE_NUT
help help
The NUT plugin collects uninterruptible power supply (UPS) The NUT plugin collects uninterruptible power supply (UPS)
statistics using the Network UPS Tools (NUT). statistics using the Network UPS Tools (NUT).
comment "nut needs a toolchain w/ C++" comment "nut needs a toolchain w/ C++, threads"
depends on !BR2_INSTALL_LIBSTDCPP depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
config BR2_PACKAGE_COLLECTD_OLSRD config BR2_PACKAGE_COLLECTD_OLSRD
bool "olsrd" bool "olsrd"

View File

@@ -1,11 +1,12 @@
comment "nut needs a toolchain w/ C++" comment "nut needs a toolchain w/ C++, threads"
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on !BR2_INSTALL_LIBSTDCPP depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
config BR2_PACKAGE_NUT config BR2_PACKAGE_NUT
bool "nut" bool "nut"
depends on BR2_USE_MMU # fork() depends on BR2_USE_MMU # fork()
depends on BR2_INSTALL_LIBSTDCPP depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS
help help
Network UPS tools Network UPS tools