aboutsummaryrefslogtreecommitdiff
path: root/gdb/proc-events.c
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-04-29 12:04:54 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2018-04-29 12:05:10 -0400
commite28b63a989caffa4a6fba1aaf0d8992b37d13da8 (patch)
tree4fe3774e3877ea10facaf6dff561f6e4142ad37d /gdb/proc-events.c
parentcd8c76e410a5f16a170cc680be1ae2ecb5528821 (diff)
downloadgdb-e28b63a989caffa4a6fba1aaf0d8992b37d13da8.zip
gdb-e28b63a989caffa4a6fba1aaf0d8992b37d13da8.tar.gz
gdb-e28b63a989caffa4a6fba1aaf0d8992b37d13da8.tar.bz2
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.
Diffstat (limited to 'gdb/proc-events.c')
-rw-r--r--gdb/proc-events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/proc-events.c b/gdb/proc-events.c
index ada51b4..21f44ba 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