Hauke Mehrtens ce1798e915 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: aaf46a8fe23e ("dante: disable sched_getscheduler() - not implemented in musl")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-04-18 21:06:45 +02:00
..
2020-03-16 21:02:33 +01:00
2020-04-18 21:06:45 +02:00
2020-01-12 22:19:37 +01:00
2020-01-07 20:52:23 +01:00
2019-07-08 16:28:47 +02:00
2020-04-11 21:02:26 +02:00
2019-11-09 14:33:42 +01:00
2020-03-15 15:55:56 +00:00
2020-02-22 16:38:41 +01:00
2020-03-22 02:08:02 +01:00
2019-10-12 23:37:00 +02:00
2019-04-06 19:14:06 +02:00
2020-03-16 21:03:25 +01:00