mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-08 06:31:58 +00:00
fixed openindiana build on 64bit
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user