From f2ac483c2bdb018c4f225d2781f15b7926d5063b Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sun, 9 May 2010 20:46:11 -0400 Subject: [PATCH] Windows: define HAVE_SSIZE_T The windows param.*.h files define the ssize_t type. Therefore, we must define HAVE_SSIZE_T in order to avoid a collision with the ssize_t typedef in afs/stds.h. Change-Id: Ie34cb565f09acfffe985476d24dbca917b05c5db Reviewed-on: http://gerrit.openafs.org/1936 Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- src/config/param.amd64_w2k.h | 1 + src/config/param.i386_nt40.h | 1 + src/config/param.i386_w2k.h | 1 + src/config/param.i64_w2k.h | 1 + 4 files changed, 4 insertions(+) diff --git a/src/config/param.amd64_w2k.h b/src/config/param.amd64_w2k.h index 242bfda475..1efe6aa4b9 100644 --- a/src/config/param.amd64_w2k.h +++ b/src/config/param.amd64_w2k.h @@ -20,6 +20,7 @@ #define AFS_NAMEI_ENV 1 /* User space interface to file system */ #define AFS_HAVE_STATVFS 0 /* System doesn't support statvfs */ #define AFS_KRB5_ERROR_ENV 1 /* fetch_krb5_error_message() available in afsutil.lib */ +#define HAVE_SSIZE_T 1 #include #define SYS_NAME_ID SYS_NAME_ID_amd64_w2k diff --git a/src/config/param.i386_nt40.h b/src/config/param.i386_nt40.h index e2df990122..dde4750124 100644 --- a/src/config/param.i386_nt40.h +++ b/src/config/param.i386_nt40.h @@ -20,6 +20,7 @@ #define AFS_NAMEI_ENV 1 /* User space interface to file system */ #define AFS_HAVE_STATVFS 0 /* System doesn't support statvfs */ #define AFS_KRB5_ERROR_ENV 1 /* fetch_krb5_error_message() available in afsutil.lib */ +#define HAVE_SSIZE_T 1 #include #define SYS_NAME_ID SYS_NAME_ID_i386_nt35 diff --git a/src/config/param.i386_w2k.h b/src/config/param.i386_w2k.h index 309c0aca83..30ab18bd29 100644 --- a/src/config/param.i386_w2k.h +++ b/src/config/param.i386_w2k.h @@ -20,6 +20,7 @@ #define AFS_NAMEI_ENV 1 /* User space interface to file system */ #define AFS_HAVE_STATVFS 0 /* System doesn't support statvfs */ #define AFS_KRB5_ERROR_ENV 1 /* fetch_krb5_error_message() available in afsutil.lib */ +#define HAVE_SSIZE_T 1 #include #define SYS_NAME_ID SYS_NAME_ID_i386_w2k diff --git a/src/config/param.i64_w2k.h b/src/config/param.i64_w2k.h index 186df15256..065125337f 100644 --- a/src/config/param.i64_w2k.h +++ b/src/config/param.i64_w2k.h @@ -19,6 +19,7 @@ #define AFS_64BIT_IOPS_ENV 1 #define AFS_NAMEI_ENV 1 /* User space interface to file system */ #define AFS_HAVE_STATVFS 0 /* System doesn't support statvfs */ +#define HAVE_SSIZE_T 1 #include #define SYS_NAME_ID SYS_NAME_ID_i64_w2k