obexd: Fix compilation error on newer glibc
PATCH 1/1 obexd: Fix compilation error on newer glibc
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(+)
obexd/src/obex.h +2 -0
@@ -22,6 +22,8 @@* */ +#include <unistd.h> +#define OBJECT_SIZE_UNKNOWN -1#define OBJECT_SIZE_DELETE -2
Signature · 1 line
2.14.3
Hi Bastien,
Quoted 2 lines · Bastien Nocera
Since this glibc commit:
https://sourceware.org/git/gitweb.cgi?p=3Dglibc.git;a=3Dcommitdiff;h=3D37=
f802f86400684c8d13403958b2c598721d6360
Quoted 8 lines
glibc doesn't include declare
ssize_twhenfcntl.his included (fcntl.hincluded <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 =E2=80=98ssize_t=E2=80=
=99; did you mean =E2=80=98size_t=E2=80=99?
Quoted 20 lines
ssize_tobex_get_size(struct obex_session *os);
^~~~~~~--- obexd/src/obex.h | 2 ++ 1 file changed, 2 insertions(+)obexd/src/obex.h +2
-1@@ -22,6 +22,8 @@* */ +#include <unistd.h> +#define OBJECT_SIZE_UNKNOWN -1#define OBJECT_SIZE_DELETE -2 --
Quoted 1 line
2.14.3
Applied, thanks.
--=20
Luiz Augusto von Dentz