# HG changeset patch # User Franz Glasner # Date 1596381431 -7200 # Node ID d8069e354d60103ec54dba3f1f9d49783adedcf4 # Parent ce09461b99ec9cc9615094d936b0642ac1ca087e Internally rename the PyPy3 plugin to pypy3 also: struct and its name diff -r ce09461b99ec -r d8069e354d60 uwsginl-plugin-lang-pypy3/files/extra/patch-plugins_pypy_pypy__plugin.c --- a/uwsginl-plugin-lang-pypy3/files/extra/patch-plugins_pypy_pypy__plugin.c Wed Jul 22 21:12:31 2020 +0200 +++ b/uwsginl-plugin-lang-pypy3/files/extra/patch-plugins_pypy_pypy__plugin.c Sun Aug 02 17:17:11 2020 +0200 @@ -1,5 +1,14 @@ ---- plugins/pypy/pypy_plugin.c.orig 2020-06-15 10:24:33 UTC +--- plugins/pypy/pypy_plugin.c.orig 2020-07-09 07:54:09.000000000 +0200 +++ plugins/pypy/pypy_plugin.c +@@ -44,7 +44,7 @@ void (*uwsgi_pypy_hook_request)(void *, int); + void (*uwsgi_pypy_post_fork_hook)(void); + + extern struct uwsgi_server uwsgi; +-struct uwsgi_plugin pypy_plugin; ++struct uwsgi_plugin pypy3_plugin; + + static int uwsgi_pypy_init() { + @@ -68,11 +68,11 @@ static int uwsgi_pypy_init() { if (upypy.home) { // first try with /bin way: @@ -45,3 +54,14 @@ #endif } } +@@ -372,8 +372,8 @@ static int uwsgi_pypy_mule(char *opt) { + } + + +-struct uwsgi_plugin pypy_plugin = { +- .name = "pypy", ++struct uwsgi_plugin pypy3_plugin = { ++ .name = "pypy3", + .modifier1 = 0, + .on_load = uwsgi_pypy_onload, + .init = uwsgi_pypy_init,