From e28b63a989caffa4a6fba1aaf0d8992b37d13da8 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 29 Apr 2018 12:04:54 -0400 Subject: [PATCH] proc-events.c: fix compilation on Solaris This patch adds a guard around the usage of SYS_uuidsys, which is not available on (at least) Solaris 10 and OpenIndiana. gdb/ChangeLog: PR gdb/22950 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys with #ifdef. --- gdb/ChangeLog | 6 ++++++ gdb/proc-events.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 312301cc06b..bb80e1e3f34 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2018-04-29 Fabian Groffen + + PR gdb/22950 + * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys + with #ifdef. + 2018-04-29 John Reiser PR build/22873 diff --git a/gdb/proc-events.c b/gdb/proc-events.c index ada51b4a5d3..21f44ba15bf 100644 --- a/gdb/proc-events.c +++ b/gdb/proc-events.c @@ -493,7 +493,9 @@ init_syscall_table (void) syscall_table[SYS_utssys] = "utssys"; syscall_table[SYS_uucopy] = "uucopy"; syscall_table[SYS_uucopystr] = "uucopystr"; +#ifdef SYS_uuidsys syscall_table[SYS_uuidsys] = "uuidsys"; +#endif #ifdef SYS_va_mask syscall_table[SYS_va_mask] = "va_mask"; #endif -- 2.30.2