openwrt/package/network
Hauke Mehrtens ee480c50c1 dante: Fix compile with glibc
When compiled with glibc the config_scan.c wants to use the
cpupolicy2numeric() function which is only available when
HAVE_SCHED_SETSCHEDULER is set. It looks like the wrong define was used here.

This fixes a build problem with glibc in combination with the force
ac_cv_func_sched_setscheduler=no in the OpenWrt CONFIGURE_VARS.

This fixes the following compile error with glibc:
----------------------------------------------------------------------
/bin/ld: config_scan.o: in function `socks_yylex':
dante-1.4.1/sockd/config_scan.l:461: undefined reference to `cpupolicy2numeric'
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:522: sockd] Error 1

Fixes: aaf46a8fe2 ("dante: disable sched_getscheduler() - not implemented in musl")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit ce1798e915)
2020-05-05 00:05:28 +02:00
..
config swconfig: Activate LTO compile option 2019-11-30 00:18:45 +01:00
ipv6 odhcp6c: update to latest git HEAD 2019-09-07 13:13:40 +02:00
services wpad-wolfssl: fix crypto_bignum_sub() 2020-05-01 16:19:47 +01:00
utils dante: Fix compile with glibc 2020-05-05 00:05:28 +02:00