From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22216 invoked by alias); 29 Sep 2006 20:32:16 -0000 Received: (qmail 22202 invoked by uid 22791); 29 Sep 2006 20:32:15 -0000 X-Spam-Check-By: sourceware.org Received: from w099.z064220152.sjc-ca.dsl.cnc.net (HELO bluesmobile.corp.specifix.com) (64.220.152.99) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 29 Sep 2006 20:32:08 +0000 Received: from [::1] (bluesmobile.corp.specifix.com [192.168.1.32]) by bluesmobile.corp.specifix.com (Postfix) with ESMTP id 4FD843B928 for ; Fri, 29 Sep 2006 13:27:03 -0700 (PDT) From: Fred Fish Reply-To: fnf@specifix.com To: GDB Patches Subject: Include "defs.h" before other includes, for vec.c Date: Fri, 29 Sep 2006 20:32:00 -0000 User-Agent: KMail/1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609291331.42865.fnf@specifix.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00211.txt.bz2 This fixes a problem on solaris, where vec.h causes types.h to be pulled in, but since _SYSCALL32 hasn't been defined yet (by config.h), off32_t doesn't get defined. Then later, defs.h pulls in config.h, which defines _SYSCALL32, and also causes fcntl.h to be pulled in, which sees _SYSCALL32 and tries to use off32_t, which isn't defined. 2006-09-29 Fred Fish * vec.c: Include defs.h first. This pulls in config.h which can affect other includes. Index: gdb/gdb/vec.c =================================================================== RCS file: /services/cvs/cvsroot/latest/gdb/gdb/vec.c,v retrieving revision 1.1.2.1 diff -u -r1.1.2.1 vec.c --- gdb/gdb/vec.c 25 Sep 2006 02:04:53 -0000 1.1.2.1 +++ gdb/gdb/vec.c 29 Sep 2006 20:25:22 -0000 @@ -19,8 +19,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "vec.h" #include "defs.h" +#include "vec.h" struct vec_prefix {