diff --git a/mongoose.c b/mongoose.c index a430dfc6559f72a83c96824233e353c83a737fa5..973c98ea6d555559abd42490f7107ed0ceb6c829 100644 --- a/mongoose.c +++ b/mongoose.c @@ -168,7 +168,7 @@ struct ll { struct ll *prev, *next; }; #define MONGOOSE_USE_IDLE_TIMEOUT_SECONDS 30 #endif -#ifdef ENABLE_DBG +#ifdef MONGOOSE_ENABLE_DEBUG #define DBG(x) do { printf("%-20s ", __func__); printf x; putchar('\n'); \ fflush(stdout); } while(0) #else @@ -399,7 +399,7 @@ void *mg_start_thread(void *(*f)(void *), void *p) { #if MONGOOSE_USE_STACK_SIZE > 1 // Compile-time option to control stack size, e.g. -DUSE_STACK_SIZE=16384 - (void) pthread_attr_setstacksize(&attr, USE_STACK_SIZE); + (void) pthread_attr_setstacksize(&attr, MONGOOSE_USE_STACK_SIZE); #endif pthread_create(&thread_id, &attr, f, p);