summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-10-13 11:55:05 +0000
committerCorinna Vinschen <corinna@vinschen.de>2006-10-13 11:55:05 +0000
commitace7360b45bb5603948a3e0fa84b3cb68cf82910 (patch)
tree046f25894e71ae1fab4fa80b5fa4965cc3699722
parentfb7dc2480c9e53e5070b4b1361db5339352fe7df (diff)
downloadcygnal-ace7360b45bb5603948a3e0fa84b3cb68cf82910.tar.gz
cygnal-ace7360b45bb5603948a3e0fa84b3cb68cf82910.tar.bz2
cygnal-ace7360b45bb5603948a3e0fa84b3cb68cf82910.zip
* Makefile.in (CFLAGS): Drop -nostdinc.
* cygsuba.c: Reorder includes to allow building with VC++. * make-64bit-version-with-visual-c.bat: New file.
-rw-r--r--winsup/subauth/ChangeLog6
-rw-r--r--winsup/subauth/Makefile.in2
-rw-r--r--winsup/subauth/cygsuba.c4
-rw-r--r--winsup/subauth/make-64bit-version-with-visual-c.bat11
4 files changed, 20 insertions, 3 deletions
diff --git a/winsup/subauth/ChangeLog b/winsup/subauth/ChangeLog
index 899a3b458..a756649d0 100644
--- a/winsup/subauth/ChangeLog
+++ b/winsup/subauth/ChangeLog
@@ -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.
diff --git a/winsup/subauth/Makefile.in b/winsup/subauth/Makefile.in
index 15a8eb93b..5cab4034e 100644
--- a/winsup/subauth/Makefile.in
+++ b/winsup/subauth/Makefile.in
@@ -31,7 +31,7 @@ INSTALL_DATA := @INSTALL_DATA@
CC := @CC@
CC_FOR_TARGET := $(CC)
-CFLAGS := @CFLAGS@ -nostdinc
+CFLAGS := @CFLAGS@
include $(srcdir)/../Makefile.common
diff --git a/winsup/subauth/cygsuba.c b/winsup/subauth/cygsuba.c
index d79209fa8..131e2a05e 100644
--- a/winsup/subauth/cygsuba.c
+++ b/winsup/subauth/cygsuba.c
@@ -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,
diff --git a/winsup/subauth/make-64bit-version-with-visual-c.bat b/winsup/subauth/make-64bit-version-with-visual-c.bat
new file mode 100644
index 000000000..7025f4d70
--- /dev/null
+++ b/winsup/subauth/make-64bit-version-with-visual-c.bat
@@ -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