diff netio.c @ 1426:89f8c5960527

test for linux/pkt-sched.h rather than SO_PRIORITY
author Matt Johnston <matt@ucc.asn.au>
date Fri, 23 Jun 2017 23:36:33 +0800
parents 2c9dac2d6707
children 69862e8cc405 06d52bcb8094
line wrap: on
line diff
--- a/netio.c	Fri Jun 23 23:21:20 2017 +0800
+++ b/netio.c	Fri Jun 23 23:36:33 2017 +0800
@@ -306,7 +306,7 @@
 #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 @@
 	}
 #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) {