fixed openindiana build on 64bit

This commit is contained in:
roberto@openindiana64
2011-10-03 15:46:04 +02:00
parent 2cae07aa52
commit 702dc44fad
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1542,7 +1542,7 @@ int uwsgi_start(void *v_argv) {
}
if (!getrlimit(RLIMIT_AS, &uwsgi.rl)) {
//check for overflow
if (uwsgi.rl.rlim_max != RLIM_INFINITY && !uwsgi.no_initial_output) {
if (uwsgi.rl.rlim_max != (rlim_t) RLIM_INFINITY && !uwsgi.no_initial_output) {
uwsgi_log("your process address space limit is %lld bytes (%lld MB)\n", (long long) uwsgi.rl.rlim_max, (long long) uwsgi.rl.rlim_max / 1024 / 1024);
}
}
+5 -2
View File
@@ -269,8 +269,11 @@ class uConf(object):
print("detected include path: %s" % self.include_path)
gcc_major = int(gcc_version.split('.')[0])
gcc_minor = int(gcc_version.split('.')[1])
try:
gcc_major = int(gcc_version.split('.')[0])
gcc_minor = int(gcc_version.split('.')[1])
except:
raise Exception("you need a C compiler to build uWSGI")
if (sys.version_info[0] == 2) or (gcc_major < 4) or (gcc_major == 4 and gcc_minor < 3):
self.cflags = self.cflags + ['-fno-strict-aliasing']
# add -fno-strict-aliasing only on python2 and gcc < 4.3