diff --git a/codecs/lpc10/lpcini.c b/codecs/lpc10/lpcini.c
index ebe229a5cff544927f98184e150b0fc145b41757..8efb640680d1b3397d541a2e9f7d6c937c00e926 100644
--- a/codecs/lpc10/lpcini.c
+++ b/codecs/lpc10/lpcini.c
@@ -34,7 +34,8 @@ Some OSS fixes and a few lpc changes to make it actually work
 	-lf2c -lm   (in that order)
 */
 
-#include <stdlib.h>
+#define WRAP_LIBC_MALLOC
+#include "asterisk.h"
 #include "f2c.h"
 
 #ifdef P_R_O_T_O_T_Y_P_E_S