| diff -ru libtirpc-1.0.3.orig/src/bindresvport.c libtirpc-1.0.3/src/bindresvport.c |
| |
| |
| @@ -61,7 +61,7 @@ |
| return bindresvport_sa(sd, (struct sockaddr *)sin); |
| } |
| |
| -#ifdef __linux__ |
| +#if defined(__linux__) || defined(__midipix__) |
| |
| #define STARTPORT 600 |
| #define LOWPORT 512 |
| diff -ru libtirpc-1.0.3.orig/src/clnt_dg.c libtirpc-1.0.3/src/clnt_dg.c |
| |
| |
| @@ -54,12 +54,16 @@ |
| #include <err.h> |
| #include "rpc_com.h" |
| |
| -#ifdef IP_RECVERR |
| +#if defined(IP_RECVERR) && !defined(__midipix__) |
| #include <asm/types.h> |
| #include <linux/errqueue.h> |
| #include <sys/uio.h> |
| #endif |
| |
| +#ifdef __midipix__ |
| +#include <sys/uio.h> |
| +#endif |
| + |
| |
| #define MAX_DEFAULT_FDS 20000 |
| |
| @@ -421,7 +425,7 @@ |
| } |
| break; |
| } |
| -#ifdef IP_RECVERR |
| +#if defined(IP_RECVERR) && !defined(__midipix__) |
| if (fd.revents & POLLERR) |
| { |
| struct msghdr msg; |
| diff -ru libtirpc-1.0.3.orig/src/rtime.c libtirpc-1.0.3/src/rtime.c |
| |
| |
| @@ -46,7 +46,7 @@ |
| #include <unistd.h> |
| #include <errno.h> |
| #include <sys/types.h> |
| -#include <sys/poll.h> |
| +#include <poll.h> |
| #include <sys/socket.h> |
| #include <sys/time.h> |
| #include <netinet/in.h> |
| diff -ru libtirpc-1.0.3.orig/src/svc_run.c libtirpc-1.0.3/src/svc_run.c |
| |
| |
| @@ -37,7 +37,7 @@ |
| #include <stdio.h> |
| #include <string.h> |
| #include <unistd.h> |
| -#include <sys/poll.h> |
| +#include <poll.h> |
| |
| |
| #include <rpc/rpc.h> |
| diff -ru libtirpc-1.0.3.orig/tirpc/reentrant.h libtirpc-1.0.3/tirpc/reentrant.h |
| |
| |
| @@ -36,7 +36,7 @@ |
| * These definitions are only guaranteed to be valid on Linux. |
| */ |
| |
| -#if defined(__linux__) |
| +#if defined(__linux__) || defined(__midipix__) |
| |
| #include <pthread.h> |
| |
| diff -ru libtirpc-1.0.3.orig/tirpc/rpc/types.h libtirpc-1.0.3/tirpc/rpc/types.h |
| |
| |
| @@ -66,7 +66,7 @@ |
| #define mem_free(ptr, bsize) free(ptr) |
| |
| |
| -#if defined __APPLE_CC__ || defined __FreeBSD__ |
| +#if defined __APPLE_CC__ || defined __FreeBSD__ || !defined(__GLIBC__) |
| # define __u_char_defined |
| # define __daddr_t_defined |
| #endif |