Changeset 216:41d849779974 for uwsgi.c

Show
Ignore:
Timestamp:
02/04/10 12:21:09 (6 months ago)
Author:
roberto@…
Branch:
default
Message:

fix for 64 bit systems

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • uwsgi.c

    r215 r216  
    957957        if (!getrlimit(RLIMIT_AS, &rl)) { 
    958958                // check for overflow 
    959                 if (rl.rlim_max + 1 != 0) { 
     959                if ( (sizeof(void *) == 4 && (uint32_t) rl.rlim_max < UINT32_MAX) || (sizeof(void *) == 8 && (uint64_t) rl.rlim_max < UINT64_MAX)) { 
    960960                        fprintf(stderr,"your process address space limit is %lld bytes (%lld MB)\n", (long long) rl.rlim_max, (long long) rl.rlim_max/1024/1024); 
    961961                }