git.iko.soy/typeable/nixpkgs
on master help sign in
ptlib: fix build

patch typedef clashes with unixODBC>=2.3.5

commit4308403c303f45d47bd85643261e27cc74dd47cb authorxeji <xeji@cat3.de> dateSun 25 Mar 2018, 17:56 (9 years ago) parent8c2c82b
1 file changed+7−3
pkgs/development/libraries/ptlib/default.nix+7−3
pkgs/development/libraries/ptlib/default.nix+7−3
@@ -24,12 +24,16 @@ stdenv.mkDerivation rec {
2424 (fetchpatch { url = http://sources.debian.net/data/main/p/ptlib/2.10.11~dfsg-2.1/debian/patches/no-sslv3;
2525 sha256 = "172s1dnnrl54p9sf1nl7s475sm78rpw3p8jxi0pdx6izzl8hcdr0";
2626 })
27− (fetchpatch { url = http://sources.debian.net/data/main/p/ptlib/2.10.11~dfsg-2.1/debian/patches/gcc-5_support;
28− sha256 = "0pf2yj0150r4cnc6nv65mclrm3dillqh1xjk7m6gsjnk9b96i5d4";
29− })
3027 ./ptlib-2.10.11-glibc-2.26.patch
3128 ];
3229
30+ # fix typedef clashes with unixODBC>=2.3.5
31+ postPatch = ''
32+ substituteInPlace include/ptlib/unix/ptlib/contain.h \
33+ --replace "typedef uintptr_t UINT" "typedef unsigned int UINT" \
34+ --replace "typedef wchar_t WCHAR" "typedef unsigned short WCHAR"
35+ '';
36+
3337 meta = with stdenv.lib; {
3438 description = "Portable Tools from OPAL VoIP";
3539 maintainers = [ maintainers.raskin ];