diff options
author | Bernd Kuhls <berndkuhls@hotmail.com> | 2014-01-03 20:18:21 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-01-03 20:41:52 +0100 |
commit | 836b0ff7f108615e8771005739ecbf1fcdccff0b (patch) | |
tree | c23186fa73abea9b7f2b769f6856e8b900789840 /package/transmission | |
parent | ab836f14e62209ce506ff17c7f344e07458e9085 (diff) |
transmission: Fix build error "conflicting types for 'UTP_Write'" after version bump
fix taken from
http://www.adminsehow.com/2012/10/how-to-install-transmission-2-71-on-debian-6-0-squeeze/
compile tested on arch sh4, fixes
http://autobuild.buildroot.org/results/638/63884de929fb7339ebf44b08cb5d1ab30010666a/
should also fix powerpc
http://autobuild.buildroot.org/results/eb4/eb486228a11a9602d4bf40e771744d2b2b40508f/
Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/transmission')
-rw-r--r-- | package/transmission/transmission-01-fix-utypes.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/transmission/transmission-01-fix-utypes.patch b/package/transmission/transmission-01-fix-utypes.patch new file mode 100644 index 000000000..e67ba6aa0 --- /dev/null +++ b/package/transmission/transmission-01-fix-utypes.patch @@ -0,0 +1,30 @@ +Fix build error "conflicting types for 'UTP_Write'" + +Fetch from: http://www.adminsehow.com/2012/10/how-to-install-transmission-2-71-on-debian-6-0-squeeze/ + +The corresponding upstream bug report (unfixed) can be found here: +https://trac.transmissionbt.com/ticket/5232 + +Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com> + +--- transmission-2.82.org/third-party/libutp/utypes.h 2013-08-09 04:47:43.000000000 +0200 ++++ transmission-2.82/third-party/libutp/utypes.h 2014-01-02 20:17:18.000000000 +0100 +@@ -35,8 +35,15 @@ + typedef const char * cstr; + typedef char * str; + +-#ifndef __cplusplus +-typedef uint8 bool; +-#endif ++//#ifndef __cplusplus ++//typedef uint8 bool; ++//#endif ++#ifndef __cplusplus ++#ifdef HAVE_STDBOOL_H ++#include <stdbool.h> ++#else ++typedef uint8 bool; ++#endif ++#endif + + #endif //__UTYPES_H__ |