diff -Nrux .svn -x work /usr/ports/www/mod_wsgi/files/patch-mod_wsgi.c mod_wsgi/files/patch-mod_wsgi.c --- /usr/ports/www/mod_wsgi/files/patch-mod_wsgi.c Wed Dec 31 16:00:00 1969 +++ mod_wsgi/files/patch-mod_wsgi.c Tue Jul 15 13:12:53 2008 @@ -0,0 +1,33 @@ +--- mod_wsgi.c.orig Tue Jul 15 13:01:00 2008 ++++ mod_wsgi.c Tue Jul 15 13:07:19 2008 +@@ -7749,10 +7749,12 @@ + { + const char *display_name = NULL; + ++#ifndef __FreeBSD__ + int slen = 0; + int dlen = 0; + + char *argv0 = NULL; ++#endif + + display_name = daemon->group->display_name; + +@@ -7771,6 +7773,9 @@ + * is restricted, need to truncate display name if too long. + */ + ++#ifdef __FreeBSD__ ++ setproctitle("%s", display_name); ++#else + argv0 = (char*)wsgi_server->process->argv[0]; + + dlen = strlen(argv0); +@@ -7782,6 +7787,7 @@ + memcpy(argv0, display_name, slen); + else + memcpy(argv0, display_name, dlen); ++#endif + } + + static void wsgi_setup_access(WSGIDaemonProcess *daemon)