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: Wed, 14 Aug 2013 15:52:53 -0400 Message-ID: <520BE015.5080107@cornell.edu> References: <520BAEBA.1030306@cornell.edu> <520BD64D.2000906@cornell.edu> <8361v8oyv2.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 1376510060 30441 80.91.229.3 (14 Aug 2013 19:54:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Aug 2013 19:54:20 +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 Wed Aug 14 21:54:21 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 1V9h9A-0007f2-L8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Aug 2013 21:54:20 +0200 Original-Received: from localhost ([::1]:49789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9h9A-0007XL-81 for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Aug 2013 15:54:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9h90-0007A3-V4 for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2013 15:54:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9h8t-0006W9-KD for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2013 15:54:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9h8t-0006W5-H6 for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2013 15:54:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V9h8s-0004Aw-C0 for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2013 15:54:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Aug 2013 19:54: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.137651000915983 (code B ref 15094); Wed, 14 Aug 2013 19:54:02 +0000 Original-Received: (at 15094) by debbugs.gnu.org; 14 Aug 2013 19:53:29 +0000 Original-Received: from localhost ([127.0.0.1]:58767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V9h8G-00049f-GT for submit@debbugs.gnu.org; Wed, 14 Aug 2013 15:53:29 -0400 Original-Received: from limerock03.mail.cornell.edu ([128.84.12.34]:42390) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V9h8A-00049K-Q0 for 15094@debbugs.gnu.org; Wed, 14 Aug 2013 15:53:23 -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 limerock03.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id r7EJrCFm026702; Wed, 14 Aug 2013 15:53:13 -0400 Original-Received: from [128.84.234.244] (dhcp244.math.cornell.edu [128.84.234.244]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id r7EJrCTU003729 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 14 Aug 2013 15:53:12 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: <8361v8oyv2.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:77357 Archived-At: On 8/14/2013 3:29 PM, Eli Zaretskii wrote: > Thanks, but could you please make the commentary more clear? I'm > afraid it doesn't make sense to me: if posix_memalign calls memalign, > then why does the latter have to be renamed, if all you want is for it > to be called? Why won't it be called unless renamed? How's this: /* 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. */ Ken