]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows-vista-sdk-ntsecapi-compat-20070324
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 24 Mar 2007 05:02:16 +0000 (05:02 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 24 Mar 2007 05:02:16 +0000 (05:02 +0000)
When loading the Vista SDK ntsecapi.h we must set _WIN32_WINNT
to 0x0501 or greater

src/WINNT/afsd/afskfw-int.h
src/WINNT/afsd/afslogon.h
src/WINNT/afsd/smb.h

index d787112fc43e516d303275475c3f878bf14d3eeb..e975f2ff0bb0a2f7864a83e23c8665ea392985f5 100644 (file)
 #ifdef USE_MS2MIT
 #define SECURITY_WIN32
 #include <security.h>
+#if _WIN32_WINNT < 0x0501
+#define AFS_WIN32_WINNT _WIN32_WINNT
+#undef _WIN32_WINNT
+#define _WIN32_WINNT 0x0501
+#endif
 #include <ntsecapi.h>
+#ifdef AFS_WIN32_WINNT
+#undef _WIN32_WINNT
+#define _WIN32_WINNT AFS_WIN32_WINNT
+#undef AFS_WIN32_WINNT
+#endif
 #endif /* USE_MS2MIT */
 #include <stdio.h>
 #include <string.h>
index 46065c336f607c952ef7337a135855a8c4d7c8e3..a5ed23afc36311a46e6aa54f748e3030d9d824fd 100644 (file)
@@ -28,7 +28,17 @@ SOFTWARE.
 
 #include <windows.h>
 #include <npapi.h>
+#if _WIN32_WINNT < 0x0501
+#define AFS_WIN32_WINNT _WIN32_WINNT
+#undef _WIN32_WINNT
+#define _WIN32_WINNT 0x0501
+#endif
 #include <ntsecapi.h>
+#ifdef AFS_WIN32_WINNT
+#undef _WIN32_WINNT
+#define _WIN32_WINNT AFS_WIN32_WINNT
+#undef AFS_WIN32_WINNT
+#endif
 #include <tchar.h>
 #include <strsafe.h>
 
index 656408b6f1d23b0f8ae14c34cd4f4337f4f04609..d1cb06a243030b2e21a1bf3cab80b6300215e128 100644 (file)
 #ifndef __SMB_H_ENV__
 #define __SMB_H_ENV__ 1
 
+#if _WIN32_WINNT < 0x0501
+#define AFS_WIN32_WINNT _WIN32_WINNT
+#undef _WIN32_WINNT
+#define _WIN32_WINNT 0x0501
+#endif
 #include <ntsecapi.h>
+#ifdef AFS_WIN32_WINNT
+#undef _WIN32_WINNT
+#define _WIN32_WINNT AFS_WIN32_WINNT
+#undef AFS_WIN32_WINNT
+#endif
 
 /* Support largefiles by default */
 #define AFS_LARGEFILES