diff options
author | Jonathan Pryor <jpryor@novell.com> | 2006-11-02 05:35:09 +0300 |
---|---|---|
committer | Jonathan Pryor <jpryor@novell.com> | 2006-11-02 05:35:09 +0300 |
commit | aa0f7790e5dc11862a86f98a8e83becdc161faca (patch) | |
tree | 7e963fcd7c151a7845e82f7cea1b0f0ebe7c60c0 /support | |
parent | d6267c679d11da03221a931772467fd2b8ca7d1b (diff) |
* configure.in: Add type checks for blkcnt_t, blksize_t, suseconds_t. Some
versions of Mac OS X don't define these, needed by support/map.c.
* support/mph.h: Add fallback typedefs for blkcnt_t, blksize_t, suseconds_t
so that map.c can rely on their presence. (Some versions of OS X don't
provide these typedefs.)
svn path=/trunk/mono/; revision=67252
Diffstat (limited to 'support')
-rw-r--r-- | support/ChangeLog | 6 | ||||
-rw-r--r-- | support/mph.h | 13 |
2 files changed, 19 insertions, 0 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index 132c9f9e2b3..de4f03f28d0 100644 --- a/support/ChangeLog +++ b/support/ChangeLog @@ -1,3 +1,9 @@ +2006-11-01 Jonathan Pryor <jonpryor@vt.edu> + + * mph.h: Add fallback typedefs for blkcnt_t, blksize_t, suseconds_t so that + map.c can rely on their presence. (Some versions of OS X don't provide + these typedefs.) + 2006-10-27 Jonathan Pryor <jonpryor@vt.edu> * map.c: Improve handling of [Flags] enumerations which mix bitfields and diff --git a/support/mph.h b/support/mph.h index 96bd39e58db..14458a03479 100644 --- a/support/mph.h +++ b/support/mph.h @@ -65,6 +65,19 @@ typedef gint64 mph_clock_t; typedef guint64 mph_fsblkcnt_t; typedef guint64 mph_fsfilcnt_t; +/* Some versions of OS X don't define these typedefs, needed by map.c */ +#ifndef HAVE_BLKCNT_T +typedef mph_blkcnt_t blkcnt_t; +#endif + +#ifndef HAVE_BLKSIZE_T +typedef mph_blksize_t blksize_t; +#endif + +#ifndef HAVE_SUSECONDS_T +typedef gint64 suseconds_t; +#endif + #ifdef HAVE_LARGE_FILE_SUPPORT #define MPH_OFF_T_MAX G_MAXINT64 #define MPH_OFF_T_MIN G_MININT64 |