* Makefile.in (CFLAGS): Drop -nostdinc.

* cygsuba.c: Reorder includes to allow building with VC++.
	* make-64bit-version-with-visual-c.bat: New file.
This commit is contained in:
Corinna Vinschen 2006-10-13 11:55:05 +00:00
parent fb7dc2480c
commit ace7360b45
4 changed files with 20 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2006-10-13 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in (CFLAGS): Drop -nostdinc.
* cygsuba.c: Reorder includes to allow building with VC++.
* make-64bit-version-with-visual-c.bat: New file.
2006-07-14 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in (LIBS): Link against msvcrt.dll, too.

View File

@ -31,7 +31,7 @@ INSTALL_DATA := @INSTALL_DATA@
CC := @CC@
CC_FOR_TARGET := $(CC)
CFLAGS := @CFLAGS@ -nostdinc
CFLAGS := @CFLAGS@
include $(srcdir)/../Makefile.common

View File

@ -1,7 +1,7 @@
/* cygsuba.c: Minimal subauthentication functionality to support
logon without password.
Copyright 2001 Red Hat, Inc.
Copyright 2001, 2006 Red Hat, Inc.
Written by Corinna Vinschen <vinschen@redhat.com>
@ -12,8 +12,8 @@ Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
#include <windows.h>
#include <subauth.h>
#include <ntsecapi.h>
#include <subauth.h>
NTSTATUS NTAPI
Msv1_0SubAuthenticationRoutine (NETLOGON_LOGON_INFO_CLASS logon_level,

View File

@ -0,0 +1,11 @@
rem This batchfile shows how to generate a 64 bit version of cygsuba.dll.
rem The 32 bit version will not work on 64 bit systems.
rem
rem This can be used as long as no x86_64-pe/coff capable gcc is available.
rem Note that this is for building inside the source dir as not to interfere
rem with the "official" 32 bit build in the build directory.
rem
rem Install the dll into the 64 bit $SYSTEMROOT.
rem
sed -e 's/ = .*$//' < cygsuba.din > cygsuba.def
cl /LDd /Wp64 /Fecygsuba.dll cygsuba.c /link /def:cygsuba.def