[PR,gdb/22950] proc-events.c: fix compilation on Solaris

Message ID 20180428192821.GH91974@bitzolder.nl
State New, archived
Headers

Commit Message

Fabian Groffen April 28, 2018, 7:28 p.m. UTC
  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): Fix compilation when SYS_uuidsys
is not defined.
  

Comments

Simon Marchi April 29, 2018, 4:06 p.m. UTC | #1
On 2018-04-28 15:28, Fabian Groffen wrote:
> This patch adds a guard around the usage of SYS_uuidsys, which is
> not available on (at least) Solaris 10 and OpenIndiana.

Thanks for the patch, I pushed it.

Simon
  

Patch

--- a/gdb/proc-events.c
+++ b/gdb/proc-events.c
@@ -493,7 +493,9 @@ 
   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
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@ 
+2018-04-28  Fabian Groffen  <grobian@gentoo.org>
+
+	PR gdb/22950
+	* proc-events.c (init_syscall_table): Fix compilation when SYS_uuidsys
+	is not defined.
+
 2018-04-27  Alexandre Oliva  <aoliva@redhat.com>
 
 	* compile/compile-c-types.c (convert_int, convert_float):