diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-12-08 04:51:28 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-12-08 04:51:28 +0000 |
commit | a920808b219ce74ae7e5e3f52bcbfe67884c5087 (patch) | |
tree | 0fcf572a9963925f7d9fc209e2c5694de0e43fcd /libc/inet/rpc/svc_unix.c | |
parent | c5ad60615407d6f54807ed52656d962d1dcbbe3e (diff) | |
download | uClibc-alpine-a920808b219ce74ae7e5e3f52bcbfe67884c5087.tar.bz2 uClibc-alpine-a920808b219ce74ae7e5e3f52bcbfe67884c5087.tar.xz |
Merge from trunk.
Diffstat (limited to 'libc/inet/rpc/svc_unix.c')
-rw-r--r-- | libc/inet/rpc/svc_unix.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libc/inet/rpc/svc_unix.c b/libc/inet/rpc/svc_unix.c index bc4cb2c20..79c27ac5f 100644 --- a/libc/inet/rpc/svc_unix.c +++ b/libc/inet/rpc/svc_unix.c @@ -38,9 +38,15 @@ */ #define xdrrec_create __xdrrec_create +#define xdrrec_endofrecord __xdrrec_endofrecord +#define xdrrec_skiprecord __xdrrec_skiprecord +#define xdrrec_eof __xdrrec_eof +#define xdr_callmsg __xdr_callmsg +#define xdr_replymsg __xdr_replymsg #define xprt_register __xprt_register #define getegid __getegid #define geteuid __geteuid +#define getsockname __getsockname #define __FORCE_GLIBC #include <features.h> @@ -154,7 +160,7 @@ svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path) { if ((sock = socket (AF_UNIX, SOCK_STREAM, 0)) < 0) { - perror (_("svc_unix.c - AF_UNIX socket creation problem")); + __perror (_("svc_unix.c - AF_UNIX socket creation problem")); return (SVCXPRT *) NULL; } madesock = TRUE; @@ -170,7 +176,7 @@ svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path) if (getsockname (sock, (struct sockaddr *) &addr, &len) != 0 || listen (sock, 2) != 0) { - perror (_("svc_unix.c - cannot getsockname or listen")); + __perror (_("svc_unix.c - cannot getsockname or listen")); if (madesock) __close (sock); return (SVCXPRT *) NULL; |