linux-headers: bump 4.{4, 9, 10}.x series
[buildroot-gz.git] / package / transmission / 0002-musl-missing-header.patch
blobebb74cbffbe2f19df6c476b1e9fd7e4402066974
1 Fix musl build
3 Downloaded from
4 https://cgit.gentoo.org/proj/musl.git/tree/net-p2p/transmission/files/transmission-2.84-musl-missing-header.patch
6 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
9 libtransmission/transmission.h: add missing <sys/types.h>
11 transmission.h and several files including it, like bitfield.c and fdlimits.h
12 make reference to ssize_t, off_t and other types defined in <sys/types.h> but
13 never include the header. By including <sys/types.h> in transmission.h, the
14 required type definitions are propagated to all files that need them.
16 Not including <sys/types.h> on glibc and uClibc systems does not pose a problem
17 because of the way the headers stack in those C Standard Libraries, but on musl
18 excluding <sys/types.h> leads to compile time failure.
20 For the POSIX specs, see
22 http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
24 Signed-of-by: Anthony G. Basile <blueness@gentoo.org>
26 diff -Naur transmission-2.84.orig/libtransmission/transmission.h transmission-2.84/libtransmission/transmission.h
27 --- transmission-2.84.orig/libtransmission/transmission.h 2014-07-01 13:09:01.682910744 -0400
28 +++ transmission-2.84/libtransmission/transmission.h 2015-07-19 03:11:07.379219181 -0400
29 @@ -28,6 +28,7 @@
31 #include <inttypes.h> /* uintN_t */
32 #include <time.h> /* time_t */
33 +#include <sys/types.h>
35 #ifdef WIN32
36 #define __USE_MINGW_ANSI_STDIO 1