From: Samuel Thibault Date: Tue, 1 Feb 2022 00:04:50 +0000 (+0100) Subject: hurd: Fix RPC link names X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e327c35ef5768789d3ba41a629f178f5eec32790;p=binutils-gdb.git hurd: Fix RPC link names The RPC stub code expects to be calling a C function, not a C++ function. Change-Id: Idd7549fc118f2addc7fb4975667a011cacacc03f --- diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index e0219b1a3ff..81676308882 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -1766,7 +1766,7 @@ do_mach_notify_dead_name (mach_port_t notify, mach_port_t dead_port) #define ILL_RPC(fun, ...) \ - extern kern_return_t fun (__VA_ARGS__); \ + extern "C" kern_return_t fun (__VA_ARGS__); \ kern_return_t fun (__VA_ARGS__) \ { \ warning (_("illegal rpc: %s"), #fun); \