Blame view

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