From patchwork Wed Dec 15 06:07:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Brobecker X-Patchwork-Id: 75606 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id D64F8B7043 for ; Wed, 15 Dec 2010 17:07:51 +1100 (EST) Received: (qmail 28455 invoked by alias); 15 Dec 2010 06:07:48 -0000 Received: (qmail 28443 invoked by uid 22791); 15 Dec 2010 06:07:47 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Dec 2010 06:07:43 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 809A82BABE7 for ; Wed, 15 Dec 2010 01:07:41 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xACJR-WpQjPn for ; Wed, 15 Dec 2010 01:07:41 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 098382BAB55 for ; Wed, 15 Dec 2010 01:07:40 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 58494145B58; Wed, 15 Dec 2010 07:07:27 +0100 (CET) Date: Wed, 15 Dec 2010 10:07:27 +0400 From: Joel Brobecker To: gcc-patches@gcc.gnu.org Subject: [RFA/PING] include sys/types.h before sys/prctl.h (for mips-irix). Message-ID: <20101215060727.GC2618@adacore.com> References: <1290531258-1805-1-git-send-email-brobecker@adacore.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1290531258-1805-1-git-send-email-brobecker@adacore.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org A friendly request for a small patch posted about 3 weeks ago... Thank you! On Tue, Nov 23, 2010 at 08:54:18AM -0800, Joel Brobecker wrote: > On mips-irix, sys/prctl.h depends on various types such as ptid_t being > declared. Otherwise, the build fails as follow: > > /usr/include/sys/prctl.h:45:9: error: expected specifier-qualifier-list before 'pid_t' > /usr/include/sys/prctl.h:91:17: error: expected specifier-qualifier-list before 'uint32_t' > [...] libiberty/ChangeLog: * setproctitle.c: If exists, include it before including . Tested on x86_64-linux, where both HAVE_SYS_PRCTL_H and HAVE_SYS_TYPES_H are defined (I used the gdb-testsuite). OK to commit? Thanks, diff --git a/libiberty/setproctitle.c b/libiberty/setproctitle.c index ceb0a38..dfcf000 100644 --- a/libiberty/setproctitle.c +++ b/libiberty/setproctitle.c @@ -21,6 +21,9 @@ Boston, MA 02110-1301, USA. */ #include "config.h" #endif #ifdef HAVE_SYS_PRCTL_H +#ifdef HAVE_SYS_TYPES_H +#include +#endif #include #endif #include "ansidecl.h"