Re: [PATCH] monitor: Opencode strndupa in print_string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Szymon,

On Wed, Jul 31, 2013, Szymon Janc wrote:
> Strndupa is GNU extension. print_string is simple and opencoding
> strndupa is not a big loss.
> 
> This fix linkage error with bionic library which doesn't provide
> strndupa.
> 
> target Executable: btmon (out/target/product/grouper/obj/EXECUTABLES/
>     btmon_intermediates/LINKED/btmon)
> prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/
>     arm-linux-androideabi/4.6.x-google/../../../../
>     arm-linux-androideabi/bin/ld: out/target/product/grouper/obj/
>     EXECUTABLES/btmon_intermediates/monitor/sdp.o: in function
>     print_string:external/bluetooth/bluez/monitor/sdp.c:146: error:
>     undefined reference to 'strndupa'
> collect2: ld returned 1 exit status
> make: *** [out/target/product/grouper/obj/EXECUTABLES/
>     btmon_intermediates/LINKED/btmon] Error
> ---
>  monitor/sdp.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

Applied. Thanks.

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux