This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] compile cyglsa with mingw-w64


The mingw-w64 toolchain can now be used in place of MSVC to build
cyglsa64.dll.  I didn't integrate this into the Makefile because that
would make the toolchain a hard build-time requirement, and I don't
think that is desirable at this time.

Patch and new file attached.


Yaakov

2011-03-30  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>

	* cyglsa.c: Fix compilation with MinGW-w64 toolchains.
	* make-64bit-version-with-mingw-w64.sh: New file.

Index: cyglsa.c
===================================================================
RCS file: /cvs/src/src/winsup/lsaauth/cyglsa.c,v
retrieving revision 1.7
diff -u -r1.7 cyglsa.c
--- cyglsa.c	29 Jan 2010 19:50:15 -0000	1.7
+++ cyglsa.c	31 Mar 2011 02:33:26 -0000
@@ -1,6 +1,6 @@
 /* cyglsa.c: LSA authentication module for Cygwin
 
-   Copyright 2006, 2008, 2010 Red Hat, Inc.
+   Copyright 2006, 2008, 2010, 2011 Red Hat, Inc.
 
    Written by Corinna Vinschen <corinna@vinschen.de>
 
@@ -19,7 +19,7 @@
 #include <lmcons.h>
 #include <iptypes.h>
 #include <ntsecapi.h>
-#ifdef __MINGW32__
+#if defined(__MINGW32__) && !defined(_W64)
 #include <ntddk.h>
 #endif
 #include "../cygwin/cyglsa.h"

Attachment: make-64bit-version-with-mingw-w64.sh
Description: application/shellscript


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]