From a6aa2c31c63d06993efcfb2b0670d3caecf7f961 Mon Sep 17 00:00:00 2001 From: "roberto@voldemort" Date: Tue, 7 Sep 2010 10:01:34 +0200 Subject: [PATCH] fixed PASTE=False compilation --- evdis.c | 7 +++++++ uwsgi.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/evdis.c b/evdis.c index 911b3147..844f4856 100644 --- a/evdis.c +++ b/evdis.c @@ -5,6 +5,13 @@ void evdis_loop(struct uwsgi_server *uwsgi) { // populate event list + + int kfd = kqueue(); + if (kfd < 0) { + uwsgi_error("kqueue()"); + exit(1); + } + } diff --git a/uwsgi.c b/uwsgi.c index f55bc931..34cbf1c9 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -2984,6 +2984,7 @@ void manage_opt(int i, char *optarg) { case LONG_ARGS_INI: uwsgi.ini = optarg; break; +#ifdef UWSGI_PASTE case LONG_ARGS_INI_PASTE: uwsgi.ini = optarg; if (uwsgi.ini[0] != '/') { @@ -3010,6 +3011,7 @@ void manage_opt(int i, char *optarg) { } break; #endif +#endif #ifdef UWSGI_PASTE case LONG_ARGS_PASTE: uwsgi.paste = optarg;