From owner-freebsd-current Tue Jul 9 16:10:52 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D36C637B400 for ; Tue, 9 Jul 2002 16:10:49 -0700 (PDT) Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DDA743E3B for ; Tue, 9 Jul 2002 16:10:49 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0275.cvx22-bradley.dialup.earthlink.net ([209.179.199.20] helo=mindspring.com) by falcon.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17S485-0006vm-00; Tue, 09 Jul 2002 16:10:45 -0700 Message-ID: <3D2B6D4A.D382E7FF@mindspring.com> Date: Tue, 09 Jul 2002 16:10:02 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: ticso@cicely.de Cc: freebsd-current@freebsd.org Subject: Re: stdlib.h wchar_t problem References: <20020709020950.GS94279@cicely5.cicely.de> <3D2A49D2.7AF1DB5F@mindspring.com> <20020709140851.GC94279@cicely5.cicely.de> Content-Type: multipart/mixed; boundary="------------5E0558677DACEC62F8CC45D8" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------5E0558677DACEC62F8CC45D8 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Bernd Walter wrote: > On Mon, Jul 08, 2002 at 07:26:26PM -0700, Terry Lambert wrote: > > I posted a patch for this already, based on Garrett Wollman's > > point about where theings are defined (actually, it requires a > > non-definition one up from the one Garrett noted as the problem). > > I did a complete reinstall of /usr/includes without a difference, but > my source is from 3. Jul. > Do you remember which commit it fixed? > I wasn't able to find one that would explain a difference. Looking at the sources, my patch was apparently not committed: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/include/ansi.h Please apply the attached patch. It only deals with the problem for i386. A similar patch is needed for other architectures. -- Terry --------------5E0558677DACEC62F8CC45D8 Content-Type: text/plain; charset=us-ascii; name="ansi.h.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ansi.h.diff" Index: ansi.h =================================================================== RCS file: /usr/cvs/src/sys/i386/include/ansi.h,v retrieving revision 1.18.2.4 diff -c -r1.18.2.4 ansi.h *** ansi.h 3 Jun 2001 17:15:54 -0000 1.18.2.4 --- ansi.h 18 Jun 2002 02:57:49 -0000 *************** *** 56,62 **** --- 56,64 ---- #define _BSD_SSIZE_T_ int /* byte count or error */ #define _BSD_TIME_T_ long /* time()... */ #define _BSD_TIMER_T_ int /* timer_gettime()... */ + #if __GNUC__ < 3 || !defined(__cplusplus) #define _BSD_WCHAR_T_ _BSD_CT_RUNE_T_ /* wchar_t (see below) */ + #endif #define _BSD_WINT_T_ _BSD_CT_RUNE_T_ /* wint_t (see below) */ /* --------------5E0558677DACEC62F8CC45D8-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message