Index: libtelnet.c
--- libtelnet.c.orig	2009-03-23 04:05:31 +0100
+++ libtelnet.c	2009-03-24 19:26:28 +0100
@@ -11,7 +11,7 @@
  * all present and future rights to this code under copyright law. 
  */
 
-#include <malloc.h>
+#include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
 #include <errno.h>
