#include "includes.h"
#include "system/network.h"
#include "netif.h"
+#include "lib/util/tsort.h"
/****************************************************************************
Try the "standard" getifaddrs/freeifaddrs interfaces.
if (total <= 0) return total;
/* now we need to remove duplicates */
- qsort(ifaces, total, sizeof(ifaces[0]), QSORT_CAST iface_comp);
+ TYPESAFE_QSORT(ifaces, total, iface_comp);
for (i=1;i<total;) {
if (iface_comp(&ifaces[i-1], &ifaces[i]) == 0) {