~roger-booth/mysql-proxy/laminator

« back to all changes in this revision

Viewing changes to src/chassis-limits.c

  • Committer: jan at mysql
  • Date: 2009-11-05 10:53:47 UTC
  • Revision ID: jan@mysql.com-20091105105347-mu9cyxirwdzec2pq
detect the size of rlim_t

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 * the size of rlim_t depends on arch and large-file-support
37
37
 */
38
38
#if SIZEOF_RLIM_T == 8
 
39
/* on MacOS X rlim_t is a __uint64_t which is a unsigned long long (which is a 64bit value)
 
40
 * GUINT64 is on 64bit a unsigned long ... well ... 
 
41
 *
 
42
 * even if they are the same size, gcc still spits out a warning ... we ignore it
 
43
 */
39
44
#define G_RLIM_T_FORMAT G_GUINT64_FORMAT
40
45
#else
41
46
#define G_RLIM_T_FORMAT G_GUINT32_FORMAT