Module: Mesa
Branch: master
Commit: 10a4f1e77aec66dfc1af4092ebd5be39383c3223
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=10a4f1e77aec66dfc1af4092ebd5be39383c3223

Author: Vinson Lee <[email protected]>
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 <[email protected]>

---

 src/glsl/nir/nir_to_ssa.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glsl/nir/nir_to_ssa.c b/src/glsl/nir/nir_to_ssa.c
index 03cce92..3e75211 100644
--- a/src/glsl/nir/nir_to_ssa.c
+++ b/src/glsl/nir/nir_to_ssa.c
@@ -26,7 +26,7 @@
  */
 
 #include "nir.h"
-#include "malloc.h"
+#include <stdlib.h>
 #include <unistd.h>
 
 /*

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to