From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#15094: Fix for posix_memalign on Cygwin Date: Thu, 15 Aug 2013 07:51:36 -0400 Message-ID: <520CC0C8.2000805@cornell.edu> References: <520BAEBA.1030306@cornell.edu> <520BD64D.2000906@cornell.edu> <8361v8oyv2.fsf@gnu.org> <520BE015.5080107@cornell.edu> <831u5vpt65.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1376567595 15731 80.91.229.3 (15 Aug 2013 11:53:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Aug 2013 11:53:15 +0000 (UTC) Cc: 15094@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 15 13:53:17 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V9w7A-000709-4g for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Aug 2013 13:53:16 +0200 Original-Received: from localhost ([::1]:52522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9w79-0005hd-E9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Aug 2013 07:53:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9w71-0005dt-Qe for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2013 07:53:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9w6w-00084v-M4 for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2013 07:53:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9w6w-00084o-J1 for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2013 07:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V9w6w-0007yP-8f for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2013 07:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Aug 2013 11:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15094 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15094-submit@debbugs.gnu.org id=B15094.137656752430542 (code B ref 15094); Thu, 15 Aug 2013 11:53:02 +0000 Original-Received: (at 15094) by debbugs.gnu.org; 15 Aug 2013 11:52:04 +0000 Original-Received: from localhost ([127.0.0.1]:59976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V9w5z-0007wX-Q1 for submit@debbugs.gnu.org; Thu, 15 Aug 2013 07:52:04 -0400 Original-Received: from limerock01.mail.cornell.edu ([128.84.12.99]:49416) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V9w5y-0007vx-8B for 15094@debbugs.gnu.org; Thu, 15 Aug 2013 07:52:02 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock01.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id r7FBpt0I005996; Thu, 15 Aug 2013 07:51:56 -0400 Original-Received: from [192.168.1.5] (cpe-67-249-194-47.twcny.res.rr.com [67.249.194.47]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id r7FBpsMe018163 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 15 Aug 2013 07:51:55 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 In-Reply-To: <831u5vpt65.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:77372 Archived-At: On 8/14/2013 10:46 PM, Eli Zaretskii wrote: >> Date: Wed, 14 Aug 2013 15:52:53 -0400 >> From: Ken Brown >> CC: 15094@debbugs.gnu.org >> >> /* Cygwin allows applications to provide their own malloc. As of >> cygwin-1.7.24, applications that provide their own malloc are also >> allowed to provide their own posix_memalign (but not memalign). Calls >> to memalign are handled by Cygwin's memalign, which always returns >> ENOSYS if the application has defined its own malloc. So we have to >> rename memalign in order to make sure that posix_memalign calls >> Emacs's memalign rather than Cygwin's. */ > > How does Cygwin memalign come into play, when Emacs provides its own? As I said in the comment, Cygwin does not let applications define their own memalign. During linking, calls to memalign become calls to Cygwin's memalign. Ken