X-Spam-Check-By: sourceware.org
Message-ID: <460D7854.CBA2A042@dessent.net>
Date: Fri, 30 Mar 2007 13:51:32 -0700
From: Brian Dessent <brian@dessent.net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: Piotr Wyderski <piotr.wyderski@wp.pl>
CC: cygwin@cygwin.com, mingw-users@lists.sourceforge.net
Subject: Re: [bug] Missing winapi symbols
References: <006f01c7730a$d7903d50$ed346957@voltan>
Content-Type: multipart/mixed;  boundary="------------4BCBBA69CECB944CB6D59EB8"
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
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

--------------4BCBBA69CECB944CB6D59EB8
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Piotr Wyderski wrote:

> The CreateMemoryResourceNotification() function
> is not defined in libkernel32.a. It is, however, defined
> in the win32api includes (with _WIN32_WINNT=0x0501),
> which it correct. I've checked both 3.8 and the latest 3.9
> versions of the win32api package and none of them exports
> the symbol. It stops the phase of linking of my program
> with an unrecoverable error.

The import libraries for the Win32 API (w32api) is actually maintained
by the MinGW project, and only distributed by Cygwin, so I've CC'd
them.  The attached patch ought to fix this.

Brian
--------------4BCBBA69CECB944CB6D59EB8
Content-Type: text/plain; charset=us-ascii;
 name="w32api-CreateMemoryResourceNotification.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="w32api-CreateMemoryResourceNotification.patch"

2007-03-30  Brian Dessent  <brian@dessent.net>

	* lib/kernel32.def (CreateMemoryResourceNotification@4): Define.

Index: lib/kernel32.def
===================================================================
RCS file: /cvs/src/src/winsup/w32api/lib/kernel32.def,v
retrieving revision 1.24
diff -u -p -r1.24 kernel32.def
--- lib/kernel32.def	10 Aug 2006 21:06:01 -0000	1.24
+++ lib/kernel32.def	30 Mar 2007 20:48:06 -0000
@@ -79,6 +79,7 @@ CreateJobObjectA@8
 CreateJobObjectW@8
 CreateMailslotA@16
 CreateMailslotW@16
+CreateMemoryResourceNotification@4
 CreateMutexA@12
 CreateMutexW@12
 CreateNamedPipeA@32


--------------4BCBBA69CECB944CB6D59EB8
Content-Type: text/plain; charset=us-ascii

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


