If eglibc (2.1.5) is selected in openwrt instead of uclibc, transmission package...
authorMirko Vogt <mirko@openwrt.org>
Mon, 6 Aug 2012 11:08:44 +0000 (11:08 +0000)
committerMirko Vogt <mirko@openwrt.org>
Mon, 6 Aug 2012 11:08:44 +0000 (11:08 +0000)
commit3995ea27a61538ae13b284f2e5b5d98689c1ba67
tree72de35e7348ed8f1cdb6564dc2b39b49a5eda959
parent02bb5e3de7b7f75ca13d3a05a728df3b06c8ce8f
If eglibc (2.1.5) is selected in openwrt instead of uclibc, transmission package will fail to build because the function definition exported by the libtransmission/fdlimit.c is lightly different than the function definition in fcntl.h that is installed by eglibc.

To get transmission build to work both with uclibc
and eglibc, fdlimit.c needs to export function
only if the build toolchain uses uclibc.

This fixes also a openwrt bug
https://dev.openwrt.org/ticket/8820

openwrt_trunk.git/staging_dir/
toolchain-mipsel_gcc-4.6-linaro_eglibc-2.15/lib/
gcc/mipsel-openwrt-linux-gnu/4.6.3/../../../../
mipsel-openwrt-linux-gnu/sys-include/bits/fcntl.h:316:12:
error: conflicting types for 'fallocate64'
fdlimit.c:30:14: note: previous declaration of 'fallocate64' was here

Signed-off-by: Mika Laitio <mika.laitio@nokia.com>
SVN-Revision: 33012
net/transmission/patches/010_libtransmission_fallocate64_eglibc.patch [new file with mode: 0644]