xref: /OK3568_Linux_fs/buildroot/package/transmission/0001-fix-utypes.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Fix build error "conflicting types for 'UTP_Write'"
2
3Fetch from: http://www.adminsehow.com/2012/10/how-to-install-transmission-2-71-on-debian-6-0-squeeze/
4
5The corresponding upstream bug report (unfixed) can be found here:
6https://trac.transmissionbt.com/ticket/5232
7
8Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>
9[Fabrice: adapt to 3.00, which always uses stdbool.h]
10Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
11[yann.morin.1998@free.fr:
12  - don't comment-out dropped code, just drop it
13  - use CR-LF in replacement code, as used by upstream
14]
15Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
16
17--- transmission-2.82.org/third-party/libutp/utypes.h	2013-08-09 04:47:43.000000000 +0200
18+++ transmission-2.82/third-party/libutp/utypes.h	2014-01-02 20:17:18.000000000 +0100
19@@ -35,8 +35,8 @@
20 typedef const char * cstr;
21 typedef char * str;
22
23-#ifndef __cplusplus
24-typedef uint8 bool;
25-#endif
26+#ifndef __cplusplus
27+#include <stdbool.h>
28+#endif
29
30 #endif //__UTYPES_H__
31