chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
aec6466
)
FreeBSD doesn't have IFF_DYNAMIC
author
Richard Kettlewell
<rjk@greenend.org.uk>
Fri, 30 May 2014 17:41:35 +0000
(18:41 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Fri, 30 May 2014 17:41:35 +0000
(18:41 +0100)
clients/playrtp.c
patch
|
blob
|
blame
|
history
diff --git
a/clients/playrtp.c
b/clients/playrtp.c
index 89e458e48504c471f327b0171b81bfe1099b91c9..707bbf99994fa528cd9ac35d1d72b9a67e1d2e11 100644
(file)
--- a/
clients/playrtp.c
+++ b/
clients/playrtp.c
@@
-647,10
+647,12
@@
static int compare_flags(const struct ifaddrs *a,
unsigned aup = aflags & IFF_UP, bup = bflags & IFF_UP;
if(aup != bup)
return aup > bup ? 1 : -1;
+#if IFF_DYNAMIC
/* Static addresses are better than dynamic */
unsigned adynamic = aflags & IFF_DYNAMIC, bdynamic = bflags & IFF_DYNAMIC;
if(adynamic != bdynamic)
return adynamic < bdynamic ? 1 : -1;
+#endif
unsigned aloopback = aflags & IFF_LOOPBACK, bloopback = bflags & IFF_LOOPBACK;
/* Static addresses are better than dynamic */
if(aloopback != bloopback)