From patchwork Sat Apr 28 19:28:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Groffen X-Patchwork-Id: 27020 Received: (qmail 33754 invoked by alias); 28 Apr 2018 19:28:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 33738 invoked by uid 89); 28 Apr 2018 19:28:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.2 spammy=UD:nl, Fabian, fabian, Hx-languages-length:948 X-HELO: hera.orakel.bitzolder.nl Received: from hera.orakel.bitzolder.nl (HELO hera.orakel.bitzolder.nl) (83.160.209.142) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 28 Apr 2018 19:28:29 +0000 Received: from [2001:980:3ff0:64:c82c:1b31:731f:c969] (helo=bitzolder.nl) by hera.orakel.bitzolder.nl with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fCVWC-00016y-MC for gdb-patches@sourceware.org; Sat, 28 Apr 2018 21:28:24 +0200 Date: Sat, 28 Apr 2018 21:28:21 +0200 From: Fabian Groffen To: gdb-patches@sourceware.org Subject: [PATCH][PR gdb/22950] proc-events.c: fix compilation on Solaris Message-ID: <20180428192821.GH91974@bitzolder.nl> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.3 (Darwin 16.7.0, VIM - Vi IMproved 8.0) 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 + + PR gdb/22950 + * proc-events.c (init_syscall_table): Fix compilation when SYS_uuidsys + is not defined. + 2018-04-27 Alexandre Oliva * compile/compile-c-types.c (convert_int, convert_float):