File qjack-gcc6.patch of Package libqjack
Index: qjack-20131111/qjack/inport.h
===================================================================
--- qjack-20131111.orig/qjack/inport.h
+++ qjack-20131111/qjack/inport.h
@@ -78,7 +78,7 @@ template <typename T> quint32 InPortBase
{
if ((size % sizeof(T)) != 0){
qWarning() << "InPort | corrupted data";
- return;
+ return -1;
}
return(m_buffer.read(reinterpret_cast<T *>(data), size / sizeof(T)));
Index: qjack-20131111/qjack/outport.h
===================================================================
--- qjack-20131111.orig/qjack/outport.h
+++ qjack-20131111/qjack/outport.h
@@ -76,7 +76,7 @@ template<typename T> quint32 OutPortBase
{
if ((size % sizeof(T)) != 0){
qWarning() << "OutPort | corrupted data";
- return;
+ return -1;
}
return(m_buffer.write(reinterpret_cast<T *>(data), size / sizeof(T)));
Index: qjack-20131111/qjack/qjackclient.h
===================================================================
--- qjack-20131111.orig/qjack/qjackclient.h
+++ qjack-20131111/qjack/qjackclient.h
@@ -60,7 +60,9 @@ public:
//! errno
// local storage of the error number returned (if any)
// from functions called made available for reference or display.
+#ifndef errno
int errno;
+#endif
//! errstr
// local storage the error message (if any)