From: Mike Frysinger Date: Tue, 3 Jul 2012 19:22:05 +0000 (-0400) Subject: sunrpc: fix rpc bootstrap builds X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7ef7b6735083a0c6e726cad950f5621517f46d4;p=thirdparty%2Fglibc.git sunrpc: fix rpc bootstrap builds If you build & install glibc w/rpc disabled, you no longer have headers in /usr/include/rpc/ (this is expected). But if you try to build glibc w/rpc enabled, this gets into a bad state due to the new rpc helpers that get cross-compiled: $ make ... x86_64-pc-linux-gnu-gcc -m32 -D_RPC_THREAD_SAFE_ -D_GNU_SOURCE -DIS_IN_build \ -include $objdir/config.h rpc_clntout.c -o $objdir/sunrpc/cross-rpc_clntout.o \ -MMD -MP -MF $objdir/sunrpc/cross-rpc_clntout.o.dt -MT $objdir/sunrpc/cross-rpc_clntout.o -c rpc_clntout.c:34:23: fatal error: rpc/types.h: No such file or directory compilation terminated. make: *** [$objdir/sunrpc/cross-rpc_clntout.o] Error 1 Signed-off-by: Mike Frysinger (cherry picked from commit fb21f89b75d0152aa42efb6b620843799a4cd76b) --- diff --git a/ChangeLog b/ChangeLog index 32bb34585ca..27cf01e5735 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-07-06 Mike Frysinger + + * sunrpc/rpc_clntout.c: Change to "rpc/types.h". + 2012-07-16 Andreas Jaeger * po/ru.po: Update from translation team. diff --git a/sunrpc/rpc_clntout.c b/sunrpc/rpc_clntout.c index ec040c775e2..ce4d2a4c953 100644 --- a/sunrpc/rpc_clntout.c +++ b/sunrpc/rpc_clntout.c @@ -31,7 +31,7 @@ */ #include #include -#include +#include "rpc/types.h" #include "rpc_parse.h" #include "rpc_util.h" #include "proto.h"