aboutsummaryrefslogtreecommitdiff
path: root/sunrpc/proto.h
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim@codesourcery.com>2012-05-10 17:07:45 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-05-10 17:08:40 +0000
commit28e725016266de6cc18f7aef5c675c57b7a42a89 (patch)
treefaa9cfd5e7df63e7b4cfcfcab28af614f97f75c8 /sunrpc/proto.h
parentc8c59454eac603f75e8e037d290e595abeda2af5 (diff)
downloadglibc-28e725016266de6cc18f7aef5c675c57b7a42a89.zip
glibc-28e725016266de6cc18f7aef5c675c57b7a42a89.tar.gz
glibc-28e725016266de6cc18f7aef5c675c57b7a42a89.tar.bz2
Build rpcgen-generated files when cross compiling.
Diffstat (limited to 'sunrpc/proto.h')
-rw-r--r--sunrpc/proto.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sunrpc/proto.h b/sunrpc/proto.h
index 3e1ecd1..0ba9cd6 100644
--- a/sunrpc/proto.h
+++ b/sunrpc/proto.h
@@ -50,3 +50,19 @@ void crash(void) __attribute__ ((noreturn));
void tabify(FILE *f, int tab);
char *make_argname(const char *pname, const char *vname);
void add_type(int len, const char *type);
+
+/* This header is the last one included in all rpc_*.c files,
+ so we define stuff for cross-rpcgen here to avoid conflicts with
+ $build's C library and $host's glibc. */
+
+#ifdef IS_IN_build
+
+/* Disable translated messages when built for $build and used in
+ building glibc. */
+#define _(X) (X)
+#define textdomain(X) ((void) 0)
+
+/* This is used in the definition of PACKAGE for --version output. */
+#define _libc_intl_domainname "libc"
+
+#endif