Mesa (master): nir: s/malloc.h/stdlib.h/

Vinson Lee vlee at kemper.freedesktop.org
Sat Jan 17 00:16:38 UTC 2015


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

Author: Vinson Lee <vlee at 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 at freedesktop.org>

---

 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>
 
 /*




More information about the mesa-commit mailing list