summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libintl.h9
-rw-r--r--include/rpc/auth.h3
-rw-r--r--include/rpc/rpc.h5
-rw-r--r--include/rpc/types.h5
-rw-r--r--include/rpc/xdr.h3
-rw-r--r--libc/inet/gai_strerror.c3
-rw-r--r--libc/inet/rpc/auth_unix.c1
-rw-r--r--libc/inet/rpc/get_myaddress.c1
-rw-r--r--libc/inet/rpc/pm_getmaps.c2
-rw-r--r--libc/inet/rpc/pmap_clnt.c2
-rw-r--r--libc/inet/rpc/rpc_private.h1
-rw-r--r--libc/inet/rpc/ruserpass.c3
-rw-r--r--libc/inet/rpc/svc_run.c2
-rw-r--r--libc/inet/rpc/svc_tcp.c2
-rw-r--r--libc/inet/rpc/svc_udp.c2
-rw-r--r--libc/inet/rpc/svc_unix.c2
-rw-r--r--libc/inet/rpc/xdr.c1
-rw-r--r--libc/inet/rpc/xdr_array.c1
-rw-r--r--libc/inet/rpc/xdr_rec.c2
-rw-r--r--libc/inet/rpc/xdr_reference.c1
20 files changed, 24 insertions, 27 deletions
diff --git a/include/libintl.h b/include/libintl.h
index be3969fff..6631d0b26 100644
--- a/include/libintl.h
+++ b/include/libintl.h
@@ -23,6 +23,8 @@
#include <features.h>
+#ifdef __UCLIBC_HAS_GETTEXT_AWARENESS__
+
/* We define an additional symbol to signal that we use the GNU
implementation of gettext. */
#define __USE_GNU_GETTEXT 1
@@ -125,4 +127,11 @@ extern char *bind_textdomain_codeset (__const char *__domainname,
__END_DECLS
+#endif /* __UCLIBC_HAS_GETTEXT_AWARENESS__ */
+
+#ifdef _LIBC
+# define _(x) x
+# define N_(x) x
+#endif
+
#endif /* libintl.h */
diff --git a/include/rpc/auth.h b/include/rpc/auth.h
index 9a7a7d389..1d5198ca4 100644
--- a/include/rpc/auth.h
+++ b/include/rpc/auth.h
@@ -41,9 +41,6 @@
#ifndef _RPC_AUTH_H
#define _RPC_AUTH_H 1
-#ifdef _LIBC
-#define _(X) X
-#endif
#include <features.h>
#include <rpc/xdr.h>
diff --git a/include/rpc/rpc.h b/include/rpc/rpc.h
index cd5d8a8d7..df0542890 100644
--- a/include/rpc/rpc.h
+++ b/include/rpc/rpc.h
@@ -38,11 +38,6 @@
#ifndef _RPC_RPC_H
#define _RPC_RPC_H 1
-#ifdef _LIBC
-#define _(X) X
-#include <features.h>
-#endif
-
#include <rpc/types.h> /* some typedefs */
#include <netinet/in.h>
diff --git a/include/rpc/types.h b/include/rpc/types.h
index e166ddfd4..8eff8e718 100644
--- a/include/rpc/types.h
+++ b/include/rpc/types.h
@@ -33,11 +33,6 @@
#ifndef _RPC_TYPES_H
#define _RPC_TYPES_H 1
-#ifdef _LIBC
-#define _(X) X
-#endif
-#include <features.h>
-
typedef int bool_t;
typedef int enum_t;
/* This needs to be changed to uint32_t in the future */
diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h
index 24cc8f821..2fbe3e7b9 100644
--- a/include/rpc/xdr.h
+++ b/include/rpc/xdr.h
@@ -36,9 +36,6 @@
#ifndef _RPC_XDR_H
#define _RPC_XDR_H 1
-#ifdef _LIBC
-# define _(X) X
-#endif
#include <features.h>
#include <sys/types.h>
#include <rpc/types.h>
diff --git a/libc/inet/gai_strerror.c b/libc/inet/gai_strerror.c
index cfcb50775..ab6bf982a 100644
--- a/libc/inet/gai_strerror.c
+++ b/libc/inet/gai_strerror.c
@@ -19,9 +19,8 @@
#include <stdio.h>
#include <netdb.h>
+#include <libintl.h>
-#define N_(x) x
-#define _(x) x
static const struct
{
int code;
diff --git a/libc/inet/rpc/auth_unix.c b/libc/inet/rpc/auth_unix.c
index 62d97dca5..95d08f00d 100644
--- a/libc/inet/rpc/auth_unix.c
+++ b/libc/inet/rpc/auth_unix.c
@@ -42,6 +42,7 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include <libintl.h>
#include <sys/param.h>
#include <rpc/types.h>
diff --git a/libc/inet/rpc/get_myaddress.c b/libc/inet/rpc/get_myaddress.c
index ab4ac3345..04999a199 100644
--- a/libc/inet/rpc/get_myaddress.c
+++ b/libc/inet/rpc/get_myaddress.c
@@ -44,6 +44,7 @@ static char sccsid[] = "@(#)get_myaddress.c 1.4 87/08/11 Copyr 1984 Sun Micro";
#include <sys/socket.h>
#include <stdio.h>
#include <unistd.h>
+#include <libintl.h>
#include <net/if.h>
#include <sys/ioctl.h>
/* Order of following two #includes reversed by roland@gnu */
diff --git a/libc/inet/rpc/pm_getmaps.c b/libc/inet/rpc/pm_getmaps.c
index e7b97e631..1c313c28c 100644
--- a/libc/inet/rpc/pm_getmaps.c
+++ b/libc/inet/rpc/pm_getmaps.c
@@ -39,7 +39,7 @@ static char sccsid[] = "@(#)pmap_getmaps.c 1.10 87/08/11 Copyr 1984 Sun Micro";
* Copyright (C) 1984, Sun Microsystems, Inc.
*/
-#include <rpc/rpc.h>
+#include "rpc_private.h"
#include <rpc/pmap_prot.h>
#include <rpc/pmap_clnt.h>
#include <netdb.h>
diff --git a/libc/inet/rpc/pmap_clnt.c b/libc/inet/rpc/pmap_clnt.c
index 868326e62..20a54313b 100644
--- a/libc/inet/rpc/pmap_clnt.c
+++ b/libc/inet/rpc/pmap_clnt.c
@@ -41,7 +41,7 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <rpc/rpc.h>
+#include "rpc_private.h"
#include <rpc/pmap_prot.h>
#include <rpc/pmap_clnt.h>
diff --git a/libc/inet/rpc/rpc_private.h b/libc/inet/rpc/rpc_private.h
index adb81383c..9e01df49a 100644
--- a/libc/inet/rpc/rpc_private.h
+++ b/libc/inet/rpc/rpc_private.h
@@ -1,6 +1,7 @@
#ifndef _RPC_PRIVATE_H
#define _RPC_PRIVATE_H
#include <rpc/rpc.h>
+#include <libintl.h>
/* Now define the internal interfaces. */
extern u_long _create_xid (void) attribute_hidden;
diff --git a/libc/inet/rpc/ruserpass.c b/libc/inet/rpc/ruserpass.c
index dd8302150..d2b5eeb45 100644
--- a/libc/inet/rpc/ruserpass.c
+++ b/libc/inet/rpc/ruserpass.c
@@ -39,9 +39,8 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <libintl.h>
-
-#define _(X) (X)
/* #include "ftp_var.h" */
static int token (void);
diff --git a/libc/inet/rpc/svc_run.c b/libc/inet/rpc/svc_run.c
index a685df36c..f3e020951 100644
--- a/libc/inet/rpc/svc_run.c
+++ b/libc/inet/rpc/svc_run.c
@@ -34,7 +34,7 @@
#include <errno.h>
#include <unistd.h>
#include <sys/poll.h>
-#include <rpc/rpc.h>
+#include "rpc_private.h"
/* used by svc_[max_]pollfd */
diff --git a/libc/inet/rpc/svc_tcp.c b/libc/inet/rpc/svc_tcp.c
index 981059400..e44becf4b 100644
--- a/libc/inet/rpc/svc_tcp.c
+++ b/libc/inet/rpc/svc_tcp.c
@@ -44,7 +44,7 @@ static char sccsid[] = "@(#)svc_tcp.c 1.21 87/08/11 Copyr 1984 Sun Micro";
#include <stdio.h>
#include <unistd.h>
#include <string.h>
-#include <rpc/rpc.h>
+#include "rpc_private.h"
#include <sys/socket.h>
#include <sys/poll.h>
#include <errno.h>
diff --git a/libc/inet/rpc/svc_udp.c b/libc/inet/rpc/svc_udp.c
index 0d3840eec..9a185d208 100644
--- a/libc/inet/rpc/svc_udp.c
+++ b/libc/inet/rpc/svc_udp.c
@@ -42,7 +42,7 @@ static char sccsid[] = "@(#)svc_udp.c 1.24 87/08/11 Copyr 1984 Sun Micro";
#include <stdio.h>
#include <unistd.h>
#include <string.h>
-#include <rpc/rpc.h>
+#include "rpc_private.h"
#include <sys/socket.h>
#include <errno.h>
diff --git a/libc/inet/rpc/svc_unix.c b/libc/inet/rpc/svc_unix.c
index 1a7874c62..715f6e43a 100644
--- a/libc/inet/rpc/svc_unix.c
+++ b/libc/inet/rpc/svc_unix.c
@@ -40,7 +40,7 @@
#include <stdio.h>
#include <unistd.h>
#include <string.h>
-#include <rpc/rpc.h>
+#include "rpc_private.h"
#include <rpc/svc.h>
#include <sys/socket.h>
#include <sys/uio.h>
diff --git a/libc/inet/rpc/xdr.c b/libc/inet/rpc/xdr.c
index de10c45e9..d07607cf8 100644
--- a/libc/inet/rpc/xdr.c
+++ b/libc/inet/rpc/xdr.c
@@ -44,6 +44,7 @@ static char sccsid[] = "@(#)xdr.c 1.35 87/08/12";
#include <stdio.h>
#include <limits.h>
#include <string.h>
+#include <libintl.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
diff --git a/libc/inet/rpc/xdr_array.c b/libc/inet/rpc/xdr_array.c
index cd9005069..a058f93f2 100644
--- a/libc/inet/rpc/xdr_array.c
+++ b/libc/inet/rpc/xdr_array.c
@@ -45,6 +45,7 @@ static char sccsid[] = "@(#)xdr_array.c 1.10 87/08/11 Copyr 1984 Sun Micro";
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <limits.h>
+#include <libintl.h>
#ifdef USE_IN_LIBIO
# include <wchar.h>
diff --git a/libc/inet/rpc/xdr_rec.c b/libc/inet/rpc/xdr_rec.c
index a5f49c67e..f02f50e78 100644
--- a/libc/inet/rpc/xdr_rec.c
+++ b/libc/inet/rpc/xdr_rec.c
@@ -47,7 +47,7 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
-#include <rpc/rpc.h>
+#include "rpc_private.h"
#ifdef USE_IN_LIBIO
# include <wchar.h>
diff --git a/libc/inet/rpc/xdr_reference.c b/libc/inet/rpc/xdr_reference.c
index 6061e93c3..a7a494ac2 100644
--- a/libc/inet/rpc/xdr_reference.c
+++ b/libc/inet/rpc/xdr_reference.c
@@ -44,6 +44,7 @@ static char sccsid[] = "@(#)xdr_reference.c 1.11 87/08/11 SMI";
#include <string.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
+#include <libintl.h>
#ifdef USE_IN_LIBIO
# include <wchar.h>