From 718e14232e6b1c79aa0d3db047dcaf2d2bfbf4a3 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Fri, 23 Jun 2017 23:36:33 +0800 Subject: test for linux/pkt-sched.h rather than SO_PRIORITY --- netio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'netio.c') diff --git a/netio.c b/netio.c index 2e57534..89a0843 100644 --- a/netio.c +++ b/netio.c @@ -306,7 +306,7 @@ void set_sock_priority(int sock, enum dropbear_prio prio) { #ifdef IPTOS_LOWDELAY int iptos_val = 0; #endif -#ifdef SO_PRIORITY +#ifdef HAVE_LINUX_PKT_SCHED_H int so_prio_val = 0; #endif @@ -333,7 +333,7 @@ void set_sock_priority(int sock, enum dropbear_prio prio) { } #endif -#ifdef SO_PRIORITY +#ifdef HAVE_LINUX_PKT_SCHED_H if (prio == DROPBEAR_PRIO_LOWDELAY) { so_prio_val = TC_PRIO_INTERACTIVE; } else if (prio == DROPBEAR_PRIO_BULK) { -- cgit v1.2.1