From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eric Gillespie Newsgroups: gmane.emacs.devel Subject: Re: GTK patches part 2 Date: Wed, 11 Dec 2002 15:04:30 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <1167.1039637070@remus.pretzelnet.org> References: <200212102040.gBAKe116016464@stubby.bodenonline.com> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1039642349 12387 80.91.224.249 (11 Dec 2002 21:32:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 11 Dec 2002 21:32:29 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18MESx-0003Dd-00 for ; Wed, 11 Dec 2002 22:32:27 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18MEeB-0000hI-00 for ; Wed, 11 Dec 2002 22:44:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18MD6F-0005KB-08 for emacs-devel@quimby.gnus.org; Wed, 11 Dec 2002 15:04:55 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18MD5y-0005J9-00 for emacs-devel@gnu.org; Wed, 11 Dec 2002 15:04:38 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18MD5v-0005ID-00 for emacs-devel@gnu.org; Wed, 11 Dec 2002 15:04:37 -0500 Original-Received: from remus.pretzelnet.org ([216.37.46.186]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18MD5u-0005Hv-00 for emacs-devel@gnu.org; Wed, 11 Dec 2002 15:04:34 -0500 Original-Received: from remus.pretzelnet.org (localhost [127.0.0.1]) by remus.pretzelnet.org (Postfix) with ESMTP id 092221A285 for ; Wed, 11 Dec 2002 15:04:31 -0500 (EST) Original-To: emacs-devel@gnu.org User-Agent: nmh/1.0.4+dev (i386-unknown-netbsdelf1.6) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10068 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10068 Richard Stallman writes: > config.h does indeed include stdlib.h, so I think the question is, how > did it happen that stdlib.h failed to get included when you tried > this? That could be a bug, but it would be a bug in a different > place. As i think i said in another post, my suggesting stdlib.h was over-zealousness on my part. The missing stdio.h was real (got an error about stderr reference) and noticed malloc usage while i was there. Bad assumptions lead to bad advice. In another post, Jan reveals why the stdio.h problem was not obvious until i tried to build: s/gnu-linux.h includes stdio.h. This sort of thing is bound to happen again in the future, which is why i suggest that it is better to include the headers you need, rather than relying on system-dependent header files to do it for you. -- Eric Gillespie <*> epg@pretzelnet.org Build a fire for a man, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life. -Terry Pratchett