windows: native versions of ih_pread and ih_pwrite
[openafs.git] / src / config / afsconfig-windows.h
index d41eea8..d23a8c0 100644 (file)
 /* Define as the return type of signal handlers (int or void).  */
 #undef RETSIGTYPE
 
+
 /* The size of `long', as computed by sizeof. */
 #define SIZEOF_LONG 4
 
 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
-//#undef size_t unsigned int 
+//#undef size_t unsigned int
 
 /* Define if you have the ANSI C header files.  */
 #undef STDC_HEADERS
@@ -64,7 +65,7 @@
 #undef HAVE_DIRECT_H
 
 /* Define if you have the <dirent.h> header file.  */
-#undef HAVE_DIRENT_H
+#define HAVE_DIRENT_H 1
 
 /* Define if you have the <fcntl.h> header file.  */
 #define HAVE_FCNTL_H
 /* define if struct ufsvfs has vfs_dqrwlock */
 #undef HAVE_VFS_DQRWLOCK
 
+/* define if you have pread() and pwrite() */
+#define HAVE_PIO 1
+
 #undef PACKAGE
 #undef VERSION
 
 #endif
 
 /* Windows does not provide socklen_t prior to WDK 6.0 */
-typedef int socklen_t;
+#undef HAVE_SOCKLEN_T
+
+#if (_MSC_VER < 1400)
+typedef int errno_t;
+#endif
+
+/* Windows only supports BSD variants */
+#define S_IRUSR _S_IREAD
+#define S_IWUSR _S_IWRITE
+
+#define HAVE_CONIO_H 1