X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:mime-version
	:content-type:content-transfer-encoding; q=dns; s=default; b=dcv
	jfYmVPxUSh1wpisTMQf69P+x2/zwEU/TwWEQdBVjoDGRjTiNuvANImxxE4FUCP/l
	m/afIbdmYieQVvpY0A+enz8uNvRY+IpQxI0YvH63Bg35AK6xcuzgq0KtqsFq8zaH
	tfCPRJOD7N4+QSdGn9ibSW8xMsf1B972nbbuDq64=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:mime-version
	:content-type:content-transfer-encoding; s=default; bh=W6try2Bv4
	FejRzHRh8i73wWZ4BU=; b=IQpF8mkdKe6/aXl/nQzVLWR7kDzK6MZXK/y3cS7zr
	x8SI84T//43/hDmNdt7voSIELj7S4gY9MnPEPOqXr/1Iz+6hi2e6h50DEicjITtf
	Djf/WDGtDTLXJcW/5MFgMvD+erhwNKdS5fHoeDf6nFGNbD2juprDKfqRct61doVX
	gc=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_50,RCVD_VIA_APNIC,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_PC,T_MANY_HDRS_LCASE autolearn=ham version=3.3.1
From: Fedin Pavel <p.fedin@samsung.com>
To: cygwin@cygwin.com
Subject: Suggestion: improve cross-compiling ability
Date: Mon, 08 Jul 2013 16:07:12 +0400
Message-id: <000901ce7bd3$ae02fb70$0a08f250$%fedin@samsung.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit

 Hello! I have got one small idea on how to improve compatibility with
cross-compiling Linux software. This time it's glibc.

 At certain point glibc's rpcgen program (which is being compiled for host),
relies on '#ifndef __u_char_defined' and '#ifndef __daddr_t_defined' in
order to determine presence of 'u_char' and 'daddr_t' respectively (see
libc/sunrpc/rpc/types.h). I have to patch this to add _BSDTYPES_DEFINED
check in order to be able to cross-build glibc under Cygwin.
 What if we add also these Linux-style definitions to our includes ?

 P.S. I understand that actually it's glibc needs fixing because the same
will happen on any other non-Linux OS. But i believe FSF will simply say "we
don't care" and won't accept this fix.

Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

