proc-events.c: fix compilation on Solaris
authorFabian Groffen <grobian@gentoo.org>
Sun, 29 Apr 2018 16:04:54 +0000 (12:04 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 29 Apr 2018 16:05:10 +0000 (12:05 -0400)
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
gdb/proc-events.c

index 312301cc06b901926760a836bebf85f46d59a110..bb80e1e3f348eb9e05276a823d6c88f830a59f66 100644 (file)
@@ -1,3 +1,9 @@
+2018-04-29  Fabian Groffen  <grobian@gentoo.org>
+
+       PR gdb/22950
+       * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
+       with #ifdef.
+
 2018-04-29  John Reiser  <jreiser@BitWagon.com>
 
        PR build/22873
index ada51b4a5d35f36348a3e4896dfd41c0b521677c..21f44ba15bf4b58acde21bfae5b41f960e19c128 100644 (file)
@@ -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