aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@gnu.org>2022-02-01 01:04:50 +0100
committerSimon Marchi <simon.marchi@polymtl.ca>2022-01-31 20:30:48 -0500
commite327c35ef5768789d3ba41a629f178f5eec32790 (patch)
tree30b024ca4064936bfa59cf01e061435cd4486f65
parent21cbd63389836847cbca8c1731133d16c4c86f9a (diff)
downloadgdb-e327c35ef5768789d3ba41a629f178f5eec32790.zip
gdb-e327c35ef5768789d3ba41a629f178f5eec32790.tar.gz
gdb-e327c35ef5768789d3ba41a629f178f5eec32790.tar.bz2
hurd: Fix RPC link names
The RPC stub code expects to be calling a C function, not a C++ function. Change-Id: Idd7549fc118f2addc7fb4975667a011cacacc03f
-rw-r--r--gdb/gnu-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index e0219b1..8167630 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); \