Windows: fix consistency of afsconfig-windows.h
authorJeffrey Altman <jaltman@your-file-system.com>
Wed, 12 May 2010 14:22:07 +0000 (10:22 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Wed, 12 May 2010 14:29:18 +0000 (07:29 -0700)
Windows is a AFS_NAMEI_ENV platform

Windows (as of WDK 6) defines socklen_t as signed int

Change-Id: I0aa549309d19c745e4df50d510c19f3174b1f2eb
Reviewed-on: http://gerrit.openafs.org/1952
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>

src/config/afsconfig-windows.h

index 83b7f6e..d41eea8 100644 (file)
 # endif
 #endif
 
-#undef AFS_NAMEI_ENV
+#define AFS_NAMEI_ENV 1
 
 #undef FAST_RESTART
 #undef BITMAP_LATER
 #include "redhat-fix.h"
 #endif
 
-/* Windows does not provide socklen_t */
-typedef unsigned int socklen_t;
+/* Windows does not provide socklen_t prior to WDK 6.0 */
+typedef int socklen_t;