[Mesa-dev] [PATCH] c99_alloca.h: Include stdlib.h on all non-Windows.
Brian Paul
brianp at vmware.com
Thu Mar 5 08:16:53 PST 2015
Reviewed-by: Brian Paul <brianp at vmware.com>
On 03/05/2015 08:56 AM, Jon TURNEY wrote:
> On 01/03/2015 21:00, Alan Coopersmith wrote:
>> On 03/ 1/15 12:52 PM, Vinson Lee wrote:
>>> Fix build on FreeBSD.
>>>
>>> Bugzilla:
>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.freedesktop.org_show-5Fbug.cgi-3Fid-3D89364&d=AwICaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=T0t4QG7chq2ZwJo6wilkFznRSFy-8uDKartPGbomVj8&m=br5hcVJ7oJoB4jXDN1iNljTCpXAXCzioD0-yewyyusM&s=7ArljzV8yK-exA0R1t5BiJIQZDxfhfclVLohdSUBHBI&e=
>>> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
>>> ---
>>> include/c99_alloca.h | 6 +-----
>>> 1 file changed, 1 insertion(+), 5 deletions(-)
>>>
>>> diff --git a/include/c99_alloca.h b/include/c99_alloca.h
>>> index 7a81c50..575f719 100644
>>> --- a/include/c99_alloca.h
>>> +++ b/include/c99_alloca.h
>>> @@ -35,13 +35,9 @@
>>>
>>> # define alloca _alloca
>>>
>>> -#elif defined(__MINGW32__)
>>> -
>>> -# include <malloc.h>
>>> -
>>> #else /* !defined(_MSC_VER) */
>>>
>>> -# include <alloca.h>
>>> +# include <stdlib.h>
>>>
>>> #endif /* !defined(_MSC_VER) */
>>
>> Solaris defines alloca() in <alloca.h>, not <stdlib.h>
>
> Same on Cygwin.
>
> https://urldefense.proofpoint.com/v2/url?u=http-3A__tinderbox.x.org_builds_2015-2D03-2D05-2D0008_logs_mesa-2Dmesa_-23build&d=AwICaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=T0t4QG7chq2ZwJo6wilkFznRSFy-8uDKartPGbomVj8&m=br5hcVJ7oJoB4jXDN1iNljTCpXAXCzioD0-yewyyusM&s=nzYImjHsimcX-YxW4K7T6KEqarEo9urQFg0lxOTraek&e=
>
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.freedesktop.org_mailman_listinfo_mesa-2Ddev&d=AwIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=T0t4QG7chq2ZwJo6wilkFznRSFy-8uDKartPGbomVj8&m=br5hcVJ7oJoB4jXDN1iNljTCpXAXCzioD0-yewyyusM&s=zR9rUXLxr-jDKnz15mF_I3Jb7AhL97oRFDFJdsGogZs&e=
>
More information about the mesa-dev
mailing list