96403a6c360cfa9d27ea0af956f25ec6b47cf881
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / transmission / 0001-fix-utypes.patch
1 Fix build error "conflicting types for 'UTP_Write'"
2
3 Fetch from: http://www.adminsehow.com/2012/10/how-to-install-transmission-2-71-on-debian-6-0-squeeze/
4
5 The corresponding upstream bug report (unfixed) can be found here:
6 https://trac.transmissionbt.com/ticket/5232
7
8 Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>
9
10 --- transmission-2.82.org/third-party/libutp/utypes.h   2013-08-09 04:47:43.000000000 +0200
11 +++ transmission-2.82/third-party/libutp/utypes.h       2014-01-02 20:17:18.000000000 +0100
12 @@ -35,8 +35,15 @@
13  typedef const char * cstr;\r
14  typedef char * str;\r
15  \r
16 -#ifndef __cplusplus\r
17 -typedef uint8 bool;\r
18 -#endif\r
19 +//#ifndef __cplusplus
20 +//typedef uint8 bool;
21 +//#endif
22 +#ifndef __cplusplus
23 +#ifdef HAVE_STDBOOL_H
24 +#include <stdbool.h>
25 +#else
26 +typedef uint8 bool;
27 +#endif
28 +#endif
29  \r
30  #endif //__UTYPES_H__\r