From: Joshua Colp Date: Sun, 18 Nov 2007 17:49:40 +0000 (+0000) Subject: Use the easy way that rizzo mentioned, only include malloc.h on the Windows platform. X-Git-Tag: 1.6.0-beta1~3^2~785 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d447eb052cae26dbf783ee4f094b38f2aa05b6ec;p=thirdparty%2Fasterisk.git Use the easy way that rizzo mentioned, only include malloc.h on the Windows platform. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89398 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- 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