summaryrefslogtreecommitdiffhomepage
path: root/netio.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-06-23 23:36:33 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-06-23 23:36:33 +0800
commit24b446705b68a2d9ee859c1d06e417ac88a2a416 (patch)
treef7327b150b39f384c05140b0d74efeec94f47509 /netio.c
parent3c5ed47804e72793cd1bdfc8796b021ceae6e6a2 (diff)
test for linux/pkt-sched.h rather than SO_PRIORITY
Diffstat (limited to 'netio.c')
-rw-r--r--netio.c4
1 files changed, 2 insertions, 2 deletions
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) {