--- ./tirpc/rpc/rpcent.h 2014-11-21 21:33:50.421928818 +0000 +++ ./tirpc/rpc/rpcent.h 2014-11-21 21:35:05.140928818 +0000 @@ -64,6 +64,10 @@ extern struct rpcent *getrpcbynumber(int extern struct rpcent *getrpcent(void); #endif +#ifndef __GLIBC__ +#define __THROW +#endif + extern void setrpcent(int) __THROW; extern void endrpcent(void) __THROW; #ifdef __GLIBC__ --- ./src/getrpcent.c 2014-11-21 21:41:42.858928818 +0000 +++ ./src/getrpcent.c 2014-11-21 21:42:32.489928818 +0000 @@ -50,6 +50,14 @@ #include #endif +#ifndef __GLIBC__ +struct rpcent { + char *r_name; /* name of server for this rpc program */ + char **r_aliases; /* alias list */ + int r_number; /* rpc program number */ +}; +#endif + /* * Internet version. */ --- ./src/bindresvport.c 2014-11-21 21:35:23.468928818 +0000 +++ ./src/bindresvport.c 2014-11-21 21:36:31.276928818 +0000 @@ -36,6 +36,10 @@ * Portions Copyright(C) 1996, Jason Downs. All rights reserved. */ +#ifndef __GLIBC__ +#include +#endif + #include #include