diff --git a/media-libs/liblo/liblo-0.28.recipe b/media-libs/liblo/liblo-0.28.recipe index 703418baf..0f513b607 100644 --- a/media-libs/liblo/liblo-0.28.recipe +++ b/media-libs/liblo/liblo-0.28.recipe @@ -54,7 +54,7 @@ BUILD() libtoolize --force --copy --install aclocal autoconf - runConfigure ./configure + CFLAGS="-D_BSD_SOURCE" runConfigure ./configure make $jobArgs } diff --git a/media-libs/liblo/patches/liblo-0.28.patchset b/media-libs/liblo/patches/liblo-0.28.patchset index d38db784b..676d94bcd 100644 --- a/media-libs/liblo/patches/liblo-0.28.patchset +++ b/media-libs/liblo/patches/liblo-0.28.patchset @@ -1,4 +1,4 @@ -From 5e7d6dc8d32f0189a3385cb824030cb6c500e869 Mon Sep 17 00:00:00 2001 +From 3f117d160feaf021ad42655441a4c51cadbfc575 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Tue, 20 May 2014 16:30:21 +0000 Subject: haiku patch @@ -18,10 +18,10 @@ index c487d18..80bf8da 100644 AC_CHECK_FUNCS([getifaddrs]) -- -1.8.3.4 +2.2.2 -From dcc0e8c2cbd9453252c3dbed013683f3573ad384 Mon Sep 17 00:00:00 2001 +From c11874bebdc9abf0bdd7be7f15ef9e0665c8897d Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Tue, 20 May 2014 16:51:04 +0000 Subject: check getifaddrs @@ -53,10 +53,10 @@ index 79db0b6..7675380 100644 int set_tcp_nodelay(int enable) { return lo_address_set_tcp_nodelay(address, enable); } -- -1.8.3.4 +2.2.2 -From 4e66b251cb3f6c37418e413476082efddfd0710b Mon Sep 17 00:00:00 2001 +From 24cc2875cef6982156531f986fa5517be49677b0 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Tue, 20 May 2014 22:09:52 +0000 Subject: gcc2 build fix @@ -126,6 +126,33 @@ index 93af99b..b675e92 100644 if (r < 0) printf("Error sending back message, socket may have closed.\n"); else +diff --git a/src/address.c b/src/address.c +index 5acf694..b6ce1c5 100644 +--- a/src/address.c ++++ b/src/address.c +@@ -627,6 +627,9 @@ int lo_inaddr_find_iface(lo_inaddr t, int fam, + PIP_ADAPTER_ADDRESSES paa, aa; + DWORD rc; + int found; ++#else ++ struct ifaddrs *ifa, *ifa_list; ++ int found = 0; + #endif + + union { +@@ -745,12 +748,10 @@ int lo_inaddr_find_iface(lo_inaddr t, int fam, + + #else // !WIN32 + +- struct ifaddrs *ifa, *ifa_list; + if (getifaddrs(&ifa_list)==-1) + return 5; + ifa = ifa_list; + +- int found = 0; + while (ifa) { + if (!ifa->ifa_addr) { + ifa = ifa->ifa_next; diff --git a/src/message.c b/src/message.c index 7980ccf..28a2bd5 100644 --- a/src/message.c @@ -205,5 +232,5 @@ index 0408df3..226595e 100644 printf("%p.receiving1..\n", s); -- -1.8.3.4 +2.2.2