diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h index a9f032b343..25476bc47d 100644 --- a/include/asterisk/compat.h +++ b/include/asterisk/compat.h @@ -53,7 +53,7 @@ #ifdef HAVE_ALLOCA_H #include /* not necessarily present - could be in stdlib */ -#elif defined(HAVE_ALLOCA) +#elif defined(HAVE_ALLOCA) && defined(__MINGW32__) #include /* see if it is here... */ #endif