Re: [PATCH] obexd: Fix compilation error on newer glibc

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

 



Hi Bastien,

On Thu, Nov 2, 2017 at 4:11 PM, Bastien Nocera <hadess@xxxxxxxxxx> wrote:
> Since this glibc commit:
> https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=37f802f86400684c8d13403958b2c598721d6360
>
> glibc doesn't include declare ssize_t when fcntl.h is included (fcntl.h
> included <bits/uio.h> which includes <sys/types.h>).
>
> This fixes the following compile-time error:
>
> In file included from obexd/plugins/mas.c:41:0:
> ./obexd/src/obex.h:37:1: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
>  ssize_t obex_get_size(struct obex_session *os);
>  ^~~~~~~
> ---
>  obexd/src/obex.h | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/obexd/src/obex.h b/obexd/src/obex.h
> index fc1674755..67593f11b 100644
> --- a/obexd/src/obex.h
> +++ b/obexd/src/obex.h
> @@ -22,6 +22,8 @@
>   *
>   */
>
> +#include <unistd.h>
> +
>  #define OBJECT_SIZE_UNKNOWN -1
>  #define OBJECT_SIZE_DELETE -2
>
> --
> 2.14.3

Applied, thanks.

-- 
Luiz Augusto von Dentz
--
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