ptlib: fix build with glibc 2.26

Tracking issue: #31696
This commit is contained in:
Orivej Desh 2017-11-15 21:42:26 +00:00
parent f55308e749
commit f96b3bf871
2 changed files with 14 additions and 1 deletions

View File

@ -27,6 +27,7 @@ stdenv.mkDerivation rec {
(fetchpatch { url = http://sources.debian.net/data/main/p/ptlib/2.10.11~dfsg-2.1/debian/patches/gcc-5_support;
sha256 = "0pf2yj0150r4cnc6nv65mclrm3dillqh1xjk7m6gsjnk9b96i5d4";
})
./ptlib-2.10.11-glibc-2.26.patch
];
meta = with stdenv.lib; {
@ -41,4 +42,3 @@ stdenv.mkDerivation rec {
};
};
}

View File

@ -0,0 +1,13 @@
diff --git a/src/ptlib/unix/channel.cxx b/src/ptlib/unix/channel.cxx
index 3b17dda..2dcaa18 100644
--- a/src/ptlib/unix/channel.cxx
+++ b/src/ptlib/unix/channel.cxx
@@ -36,7 +36,7 @@
#include <ptlib.h>
#include <sys/ioctl.h>
-
+#include <sys/uio.h>
#include "../common/pchannel.cxx"