Blame patches/libtirpc-1.2.6.local.patch

Lucio Andrés Illanes Albornoz dbe381
diff -ru libtirpc-1.0.3.orig/src/bindresvport.c libtirpc-1.0.3/src/bindresvport.c
Lucio Andrés Illanes Albornoz dbe381
--- libtirpc-1.0.3.orig/src/bindresvport.c	2018-03-14 14:55:12.000000000 +0100
Lucio Andrés Illanes Albornoz dbe381
+++ libtirpc-1.0.3/src/bindresvport.c	2018-08-04 19:37:31.972078008 +0200
Lucio Andrés Illanes Albornoz dbe381
@@ -61,7 +61,7 @@
Lucio Andrés Illanes Albornoz dbe381
         return bindresvport_sa(sd, (struct sockaddr *)sin);
Lucio Andrés Illanes Albornoz dbe381
 }
Lucio Andrés Illanes Albornoz dbe381
 
Lucio Andrés Illanes Albornoz dbe381
-#ifdef __linux__
Lucio Andrés Illanes Albornoz dbe381
+#if defined(__linux__) || defined(__midipix__)
Lucio Andrés Illanes Albornoz dbe381
 
Lucio Andrés Illanes Albornoz dbe381
 #define STARTPORT 600
Lucio Andrés Illanes Albornoz dbe381
 #define LOWPORT 512
Lucio Andrés Illanes Albornoz dbe381
diff -ru libtirpc-1.0.3.orig/src/clnt_dg.c libtirpc-1.0.3/src/clnt_dg.c
Lucio Andrés Illanes Albornoz dbe381
--- libtirpc-1.0.3.orig/src/clnt_dg.c	2018-03-14 14:55:12.000000000 +0100
Lucio Andrés Illanes Albornoz dbe381
+++ libtirpc-1.0.3/src/clnt_dg.c	2018-08-04 19:41:06.325266026 +0200
Lucio Andrés Illanes Albornoz dbe381
@@ -54,12 +54,16 @@
Lucio Andrés Illanes Albornoz dbe381
 #include <err.h>
Lucio Andrés Illanes Albornoz dbe381
 #include "rpc_com.h"
Lucio Andrés Illanes Albornoz dbe381
 
Lucio Andrés Illanes Albornoz dbe381
-#ifdef IP_RECVERR
Lucio Andrés Illanes Albornoz dbe381
+#if defined(IP_RECVERR) && !defined(__midipix__)
Lucio Andrés Illanes Albornoz dbe381
 #include <asm/types.h>
Lucio Andrés Illanes Albornoz dbe381
 #include <linux/errqueue.h>
Lucio Andrés Illanes Albornoz dbe381
 #include <sys/uio.h>
Lucio Andrés Illanes Albornoz dbe381
 #endif
Lucio Andrés Illanes Albornoz dbe381
 
Lucio Andrés Illanes Albornoz dbe381
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz dbe381
+#include <sys/uio.h>
Lucio Andrés Illanes Albornoz dbe381
+#endif
Lucio Andrés Illanes Albornoz dbe381
+
Lucio Andrés Illanes Albornoz dbe381
 
Lucio Andrés Illanes Albornoz dbe381
 #define MAX_DEFAULT_FDS                 20000
Lucio Andrés Illanes Albornoz dbe381
 
Lucio Andrés Illanes Albornoz dbe381
@@ -421,7 +425,7 @@
Lucio Andrés Illanes Albornoz dbe381
                 }
Lucio Andrés Illanes Albornoz dbe381
                 break;
Lucio Andrés Illanes Albornoz dbe381
         }
Lucio Andrés Illanes Albornoz dbe381
-#ifdef IP_RECVERR
Lucio Andrés Illanes Albornoz dbe381
+#if defined(IP_RECVERR) && !defined(__midipix__)
Lucio Andrés Illanes Albornoz dbe381
       if (fd.revents & POLLERR)
Lucio Andrés Illanes Albornoz dbe381
 	{
Lucio Andrés Illanes Albornoz dbe381
 	  struct msghdr msg;
Lucio Andrés Illanes Albornoz dbe381
diff -ru libtirpc-1.0.3.orig/src/rtime.c libtirpc-1.0.3/src/rtime.c
Lucio Andrés Illanes Albornoz dbe381
--- libtirpc-1.0.3.orig/src/rtime.c	2018-03-14 14:55:12.000000000 +0100
Lucio Andrés Illanes Albornoz dbe381
+++ libtirpc-1.0.3/src/rtime.c	2018-08-04 19:47:49.089270334 +0200
Lucio Andrés Illanes Albornoz dbe381
@@ -46,7 +46,7 @@
Lucio Andrés Illanes Albornoz dbe381
 #include <unistd.h>
Lucio Andrés Illanes Albornoz dbe381
 #include <errno.h>
Lucio Andrés Illanes Albornoz dbe381
 #include <sys/types.h>
Lucio Andrés Illanes Albornoz dbe381
-#include <sys/poll.h>
Lucio Andrés Illanes Albornoz dbe381
+#include <poll.h>
Lucio Andrés Illanes Albornoz dbe381
 #include <sys/socket.h>
Lucio Andrés Illanes Albornoz dbe381
 #include <sys/time.h>
Lucio Andrés Illanes Albornoz dbe381
 #include <netinet/in.h>
Lucio Andrés Illanes Albornoz dbe381
diff -ru libtirpc-1.0.3.orig/src/svc_run.c libtirpc-1.0.3/src/svc_run.c
Lucio Andrés Illanes Albornoz dbe381
--- libtirpc-1.0.3.orig/src/svc_run.c	2018-03-14 14:55:12.000000000 +0100
Lucio Andrés Illanes Albornoz dbe381
+++ libtirpc-1.0.3/src/svc_run.c	2018-08-04 19:48:02.569155655 +0200
Lucio Andrés Illanes Albornoz dbe381
@@ -37,7 +37,7 @@
Lucio Andrés Illanes Albornoz dbe381
 #include <stdio.h>
Lucio Andrés Illanes Albornoz dbe381
 #include <string.h>
Lucio Andrés Illanes Albornoz dbe381
 #include <unistd.h>
Lucio Andrés Illanes Albornoz dbe381
-#include <sys/poll.h>
Lucio Andrés Illanes Albornoz dbe381
+#include <poll.h>
Lucio Andrés Illanes Albornoz dbe381
 
Lucio Andrés Illanes Albornoz dbe381
 
Lucio Andrés Illanes Albornoz dbe381
 #include <rpc/rpc.h>
Lucio Andrés Illanes Albornoz dbe381
diff -ru libtirpc-1.0.3.orig/tirpc/reentrant.h libtirpc-1.0.3/tirpc/reentrant.h
Lucio Andrés Illanes Albornoz dbe381
--- libtirpc-1.0.3.orig/tirpc/reentrant.h	2018-03-14 14:55:12.000000000 +0100
Lucio Andrés Illanes Albornoz dbe381
+++ libtirpc-1.0.3/tirpc/reentrant.h	2018-08-04 19:23:48.165632436 +0200
Lucio Andrés Illanes Albornoz dbe381
@@ -36,7 +36,7 @@
Lucio Andrés Illanes Albornoz dbe381
  * These definitions are only guaranteed to be valid on Linux. 
Lucio Andrés Illanes Albornoz dbe381
  */
Lucio Andrés Illanes Albornoz dbe381
 
Lucio Andrés Illanes Albornoz dbe381
-#if defined(__linux__)
Lucio Andrés Illanes Albornoz dbe381
+#if defined(__linux__) || defined(__midipix__)
Lucio Andrés Illanes Albornoz dbe381
 
Lucio Andrés Illanes Albornoz dbe381
 #include <pthread.h>
Lucio Andrés Illanes Albornoz dbe381