Skip to content

Commit

Permalink
OSX re-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto@sirius committed Mar 31, 2010
2 parents bdab4dc + 82f722b commit cb252e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ugreen.c
Expand Up @@ -214,7 +214,7 @@ void u_green_init(struct uwsgi_server *uwsgi) {
exit(1);
}
getcontext(uwsgi->ugreen_contexts[i]);
uwsgi->ugreen_contexts[i]->uc_stack.ss_sp = mmap(NULL, u_stack_size + (uwsgi->page_size*2) , PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0) + uwsgi->page_size;
uwsgi->ugreen_contexts[i]->uc_stack.ss_sp = mmap(NULL, u_stack_size + (uwsgi->page_size*2) , PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANON | MAP_PRIVATE, -1, 0) + uwsgi->page_size;
if (!uwsgi->ugreen_contexts[i]->uc_stack.ss_sp) {
perror("mmap()");
exit(1);
Expand Down
2 changes: 2 additions & 0 deletions uwsgiconfig.py
Expand Up @@ -181,6 +181,8 @@ def parse_vars():
gcc_list.append('proxy')

if UGREEN:
if uwsgi_os == 'Darwin':
cflags.append("-D_XOPEN_SOURCE")
depends_on("UGREEN", ['ASYNC'])
cflags.append("-DUWSGI_UGREEN")
gcc_list.append('ugreen')
Expand Down

0 comments on commit cb252e4

Please sign in to comment.