public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH][PR gdb/22950] proc-events.c: fix compilation on Solaris
@ 2018-04-28 19:28 Fabian Groffen
  2018-04-29 16:06 ` Simon Marchi
  0 siblings, 1 reply; 2+ messages in thread
From: Fabian Groffen @ 2018-04-28 19:28 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 940 bytes --]

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.

--- 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):

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH][PR gdb/22950] proc-events.c: fix compilation on Solaris
  2018-04-28 19:28 [PATCH][PR gdb/22950] proc-events.c: fix compilation on Solaris Fabian Groffen
@ 2018-04-29 16:06 ` Simon Marchi
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Marchi @ 2018-04-29 16:06 UTC (permalink / raw)
  To: Fabian Groffen; +Cc: gdb-patches

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-29 16:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-28 19:28 [PATCH][PR gdb/22950] proc-events.c: fix compilation on Solaris Fabian Groffen
2018-04-29 16:06 ` Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).