Bug 88478

Summary: #error "<malloc.h> has been replaced by <stdlib.h>"
Product: Mesa Reporter: Vinson Lee <vlee>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: medium CC: jason
Version: gitKeywords: regression
Hardware: x86-64 (AMD64)   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:

Description Vinson Lee 2015-01-16 00:07:39 UTC
mesa: e407fb1af4c0ca20fd839e8c3cb63cf82789b8ca (master 10.5.0-devel)

Build error on FreeBSD.

  CC       nir_to_ssa.lo
In file included from ../../src/glsl/nir/nir_to_ssa.c:29:
/usr/include/malloc.h:3:2: error: "<malloc.h> has been replaced by <stdlib.h>"
#error "<malloc.h> has been replaced by <stdlib.h>"
 ^
Comment 1 Vinson Lee 2015-01-17 00:38:25 UTC
commit 10a4f1e77aec66dfc1af4092ebd5be39383c3223
Author: Vinson Lee <vlee@freedesktop.org>
Date:   Fri Jan 16 16:14:51 2015 -0800

    nir: s/malloc.h/stdlib.h/
    
    Fix build error on Mac OS X.
    
      CC       nir_to_ssa.lo
    nir_to_ssa.c:29:10: fatal error: 'malloc.h' file not found
             ^
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88478
    Signed-off-by: Vinson Lee <vlee@freedesktop.org>

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.