diff options
author | Bastien Nocera <hadess@hadess.net> | 2017-11-02 15:11:00 +0100 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-11-03 13:00:57 +0200 |
commit | 616a57f5d671de20cd5f97a0c42c58a21c9e244c (patch) | |
tree | 12b41a19149c734393dc6221d4c7e9345893f852 /obexd | |
parent | 4ad73272ce8c677ac54b68bf600f9157bed245d2 (diff) | |
download | bluez-616a57f5d671de20cd5f97a0c42c58a21c9e244c.tar.gz |
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);
^~~~~~~
Diffstat (limited to 'obexd')
-rw-r--r-- | obexd/src/obex.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |